summaryrefslogtreecommitdiff
path: root/common/darkknight/jewelrycraft/container/GuiHandler.java
diff options
context:
space:
mode:
authorOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-14 11:58:43 +0300
committerOnyxDarkKnight <sor1n.iliutza16@gmail.com>2014-04-14 11:58:43 +0300
commit1a692ab45df3d88a6cc247cc9f4c0a41c7715264 (patch)
tree1854960d78be20ef09c9f098f5e2eb92837019dd /common/darkknight/jewelrycraft/container/GuiHandler.java
parentf965cf88704f1e5e674d98308cbe0f4451d7edeb (diff)
Updating to 1.7
Diffstat (limited to 'common/darkknight/jewelrycraft/container/GuiHandler.java')
-rw-r--r--common/darkknight/jewelrycraft/container/GuiHandler.java40
1 files changed, 0 insertions, 40 deletions
diff --git a/common/darkknight/jewelrycraft/container/GuiHandler.java b/common/darkknight/jewelrycraft/container/GuiHandler.java
deleted file mode 100644
index 70ff5f7..0000000
--- a/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.getBlockTileEntity(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;
- }
- }
-}