@Override
 public void updateScreen() {
   ItemStack item = this.container.player.getCurrentEquippedItem();
   if (item != null && item.stackTagCompound != null)
     energy = item.stackTagCompound.getInteger("buff");
   else energy = 0;
   super.updateScreen();
 }
 @Override
 protected void mouseClicked(int x, int y, int b) {
   super.mouseClicked(x, y, b);
   byte cmd = -1;
   if (this.func_146978_c(61, 19, 18, 10, x, y)) {
     cmd = 0;
   }
   if (cmd >= 0) {
     try {
       ByteArrayOutputStream bos = BlockGuiHandler.getPacketTargetData(0, -1, 0);
       DataOutputStream dos = new DataOutputStream(bos);
       dos.writeByte(cmd);
       BlockGuiHandler.sendPacketToServer(bos);
     } catch (IOException e) {
     }
   }
 }
 @Override
 protected void drawGuiContainerForegroundLayer(int mx, int my) {
   super.drawGuiContainerForegroundLayer(mx, my);
   this.drawInfo(61, 15, 18, 18, "\\i", "gui.inputFilter");
 }
 @Override
 public void initGui() {
   this.xSize = 176;
   this.ySize = 132;
   super.initGui();
 }