summaryrefslogtreecommitdiff
path: root/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-15 23:05:32 +0300
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-15 23:05:32 +0300
commit256653501365eb4f95d3dddbcdfdc23a2a9594d5 (patch)
tree682c8ff1f943936d173299acfa42e77462eb297c /eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java
parent4b8b13b34d7a8fd0ee7c7b13f11be9c2bf3b5d18 (diff)
Moved source files
Diffstat (limited to 'eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java')
-rw-r--r--eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java b/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java
deleted file mode 100644
index 3efe71c..0000000
--- a/eclipse/Jewelrycraft/common/darkknight/jewelrycraft/container/GuiHandler.java
+++ /dev/null
@@ -1,40 +0,0 @@
-package darkknight.jewelrycraft.container;
-
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.tileentity.TileEntityChest;
-import net.minecraft.world.World;
-import cpw.mods.fml.common.network.IGuiHandler;
-import cpw.mods.fml.common.network.NetworkRegistry;
-import darkknight.jewelrycraft.JewelrycraftMod;
-import darkknight.jewelrycraft.client.GuiGuide;
-import darkknight.jewelrycraft.client.GuiRingChest;
-
-public class GuiHandler implements IGuiHandler
-{
- public GuiHandler()
- {
- NetworkRegistry.INSTANCE.registerGuiHandler(JewelrycraftMod.instance, this);
- }
-
- @Override
- public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
- {
- switch(ID)
- {
- case 0: return new ContainerRingChest(player.inventory, (TileEntityChest) world.getTileEntity(x, y, z));
- case 1: return new ContainerGuide();
- default: return null;
- }
- }
-
- @Override
- public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z)
- {
- switch(ID)
- {
- case 0: return new GuiRingChest((ContainerRingChest) getServerGuiElement(ID, player, world, x, y, z));
- case 1: return new GuiGuide((ContainerGuide) getServerGuiElement(ID, player, world, x, y, z), world);
- default: return null;
- }
- }
-}