aboutsummaryrefslogtreecommitdiff
path: root/src/Java/binnie/core/gui/BinnieGUIHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/Java/binnie/core/gui/BinnieGUIHandler.java')
-rw-r--r--src/Java/binnie/core/gui/BinnieGUIHandler.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/Java/binnie/core/gui/BinnieGUIHandler.java b/src/Java/binnie/core/gui/BinnieGUIHandler.java
deleted file mode 100644
index c146d914e0..0000000000
--- a/src/Java/binnie/core/gui/BinnieGUIHandler.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package binnie.core.gui;
-
-import binnie.core.AbstractMod;
-import binnie.core.BinnieCore;
-import binnie.core.proxy.BinnieProxy;
-import binnie.craftgui.minecraft.Window;
-import cpw.mods.fml.common.network.IGuiHandler;
-import cpw.mods.fml.relauncher.Side;
-import net.minecraft.entity.player.EntityPlayer;
-import net.minecraft.world.World;
-
-public final class BinnieGUIHandler
- implements IGuiHandler
-{
- private AbstractMod mod;
-
- public BinnieGUIHandler(AbstractMod mod)
- {
- this.mod = mod;
- }
-
- public final Object getServerGuiElement(int id, EntityPlayer player, World world, int x, int y, int z)
- {
- Window window = getWindow(id, player, world, x, y, z, Side.SERVER);
- if (window == null) {
- return null;
- }
- window.initialiseServer();
-
- return window.getContainer();
- }
-
- public final Object getClientGuiElement(int id, EntityPlayer player, World world, int x, int y, int z)
- {
- if (BinnieCore.proxy.isSimulating(world)) {
- return getServerGuiElement(id, player, world, x, y, z);
- }
- Window window = getWindow(id, player, world, x, y, z, Side.CLIENT);
- if (window == null) {
- return null;
- }
- return window.getGui();
- }
-
- public Window getWindow(int id, EntityPlayer player, World world, int x, int y, int z, Side side)
- {
- for (IBinnieGUID guid : this.mod.getGUIDs()) {
- if (guid.ordinal() == id) {
- return guid.getWindow(player, world, x, y, z, side);
- }
- }
- return null;
- }
-}