summaryrefslogtreecommitdiff
path: root/java/darkknight/jewelrycraft/client/GuiJewelry.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2015-03-05 18:05:38 +0000
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2015-03-05 18:05:38 +0000
commit12cb40ba14e76b999a381b1f122bfce73223fd38 (patch)
tree17eef1530cb00ab3b3b7d2898305552529e442a1 /java/darkknight/jewelrycraft/client/GuiJewelry.java
parent420faddca46e70e3a70def168fb4e452ef193b0d (diff)
Added tabs to the inventory
Diffstat (limited to 'java/darkknight/jewelrycraft/client/GuiJewelry.java')
-rw-r--r--java/darkknight/jewelrycraft/client/GuiJewelry.java12
1 files changed, 12 insertions, 0 deletions
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);
+ }
}