@Override public void initGui() { super.initGui(); buttonList.add( new GuiButton( 1, guiLeft + 7, guiTop + 49, 140, 20, EnhancedPortals.localize("gui." + (fluid.isSending ? "sending" : "receiving")))); addElement(new ElementFluid(this, xSize - 25, 7, fluid.tank)); }
@Override public void updateScreen() { super.updateScreen(); ((GuiButton) buttonList.get(0)).displayString = EnhancedPortals.localize("gui." + (fluid.isSending ? "sending" : "receiving")); }