@Override public void initGui() { super.initGui(); int y = this.guiTop + 138; int x = this.guiLeft + 194; int id = 75, size = Const.SQ; buttonToggle = new GuiButtonTexture(id++, x, y, size, size); buttonToggle.setTooltip("item.storage_bag.toggle"); this.addButton(buttonToggle); y += 20; buttonTogglePickup = new GuiButtonTexture(id++, x, y, size, size); buttonTogglePickup.setTooltip("item.storage_bag.togglepickup"); this.addButton(buttonTogglePickup); int i = 0; size = 12; y = this.guiTop; x = this.guiLeft; for (EnumDyeColor color : EnumDyeColor.values()) { GuiButtonTooltip buttonColour = new GuiButtonTooltip(color.getColorValue(), x - size, y + size * i, size, size, color.name().substring(0, 1)); buttonColour.setTooltip(UtilChat.lang("colour." + color.getTranslationKey() + ".name")); buttonColour.packedFGColour = color.getColorValue(); this.addButton(buttonColour); i++; } }