From 12cb40ba14e76b999a381b1f122bfce73223fd38 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Thu, 5 Mar 2015 18:05:38 +0000 Subject: Added tabs to the inventory --- java/darkknight/jewelrycraft/client/GuiJewelry.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'java/darkknight/jewelrycraft/client/GuiJewelry.java') diff --git a/java/darkknight/jewelrycraft/client/GuiJewelry.java b/java/darkknight/jewelrycraft/client/GuiJewelry.java index 1d31770..0f8e59a 100644 --- a/java/darkknight/jewelrycraft/client/GuiJewelry.java +++ b/java/darkknight/jewelrycraft/client/GuiJewelry.java @@ -5,6 +5,7 @@ import net.minecraft.client.gui.inventory.GuiContainer; import net.minecraft.util.ResourceLocation; import org.lwjgl.opengl.GL11; import darkknight.jewelrycraft.container.ContainerJewelryTab; +import darkknight.jewelrycraft.container.JewelryInventory; import darkknight.jewelrycraft.events.KeyBindings; public class GuiJewelry extends GuiContainer @@ -54,4 +55,15 @@ public class GuiJewelry extends GuiContainer super.keyTyped(charecter, key); if (key == KeyBindings.inventory.getKeyCode()) mc.thePlayer.closeScreen(); } + + @Override + public void initGui () + { + super.initGui(); + int cornerX = guiLeft; + int cornerY = guiTop; + this.buttonList.clear(); + TabRegistry.updateTabValues(cornerX, cornerY, TabJewelry.class); + TabRegistry.addTabsToList(this.buttonList); + } } -- cgit v1.2.3