From 1a692ab45df3d88a6cc247cc9f4c0a41c7715264 Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Mon, 14 Apr 2014 11:58:43 +0300 Subject: Updating to 1.7 --- .../jewelrycraft/container/GuiHandler.java | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 common/darkknight/jewelrycraft/container/GuiHandler.java (limited to 'common/darkknight/jewelrycraft/container/GuiHandler.java') 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; - } - } -} -- cgit v1.2.3