protected void actionPerformed(GuiButton var1) {
      if(var1.enabled) {
         if(var1.id == 0) {
            this.mc.displayGuiScreen(this.parentGui);
         } else if(var1.id == 1) {
            this.selectedSlot = this.slotGeneral;
         } else if(var1.id == 3) {
            this.selectedSlot = this.slotItem;
         } else if(var1.id == 2) {
            this.selectedSlot = this.slotBlock;
         } else {
            this.selectedSlot.actionPerformed(var1);
         }

      }
   }