@Override protected void actionPerformed(GuiButton b) { super.actionPerformed(b); if (b.id == 0) { blacklist = !blacklist; ReikaPacketHelper.sendDataPacket( ChromatiCraft.packetChannel, ChromaPackets.ROUTERFILTERFLAG.ordinal(), (TileEntity) tile, blacklist ? 1 : 0); ((TileEntityRouterNode) tile).isBlacklist = blacklist; } }
@Overrideprotected void actionPerformed(GuiButton button) { if (button.id == 0) { if (container.chisel != null && container.chisel.getItem() instanceof IAdvancedChisel) { IAdvancedChisel item = (IAdvancedChisel) container.chisel.getItem(); currentMode = item.getNextMode(container.chisel, currentMode); PacketHandler.INSTANCE.sendToServer(new MessageChiselMode(currentMode)); } else { currentMode = ChiselMode.next(currentMode); PacketHandler.INSTANCE.sendToServer(new MessageChiselMode(currentMode)); setButtonText(); } } super.actionPerformed(button); }
@Override protected void actionPerformed(GuiButton button) { super.actionPerformed(button); updateInventory(button.id); if (button.id == 0) tabText = "MineCraft"; if (button.id == 1) tabText = "Rpg Inventory"; if (button.id == 2) tabText = "Tinkers Construct"; if (button.id == 3) tabText = "Baubel Inventory"; if (button.id == 4) tabText = "Galacticraft"; if (button.id == 5) tabText = "Mariculture"; initGui(); }
@Override protected void actionPerformed(GuiButton par1GuiButton) { // TODO Auto-generated method stub super.actionPerformed(par1GuiButton); }