diff options
| author | miozune <miozune@gmail.com> | 2023-09-10 16:34:53 +0900 |
|---|---|---|
| committer | miozune <miozune@gmail.com> | 2023-09-10 16:35:17 +0900 |
| commit | 84b4d11e693439e87687c5d636497ed61de9402c (patch) | |
| tree | 1c25b7e29773194b6a5d9a9389c46af04a319119 /src/main/java/kekztech | |
| parent | 3dfd657c27f0efe2e20841a3e93a92c7881e8f6f (diff) | |
| download | GT5-Unofficial-84b4d11e693439e87687c5d636497ed61de9402c.tar.gz GT5-Unofficial-84b4d11e693439e87687c5d636497ed61de9402c.tar.bz2 GT5-Unofficial-84b4d11e693439e87687c5d636497ed61de9402c.zip | |
Remove Item Proxy things
Diffstat (limited to 'src/main/java/kekztech')
| -rw-r--r-- | src/main/java/kekztech/GuiHandler.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/main/java/kekztech/GuiHandler.java b/src/main/java/kekztech/GuiHandler.java deleted file mode 100644 index 9708b89d24..0000000000 --- a/src/main/java/kekztech/GuiHandler.java +++ /dev/null @@ -1,46 +0,0 @@ -package kekztech; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.tileentity.TileEntity; -import net.minecraft.world.World; - -import common.container.Container_ItemProxyEndpoint; -import common.container.Container_ItemProxySource; - -import client.gui.Gui_ItemProxyEndpoint; -import client.gui.Gui_ItemProxySource; -import cpw.mods.fml.common.network.IGuiHandler; - -public class GuiHandler implements IGuiHandler { - - public static final int ITEM_PROXY_SOURCE = 0; - public static final int ITEM_PROXY_ENDPOINT = 1; - - @Override - public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { - final TileEntity te = world.getTileEntity(x, y, z); - if (te != null) { - switch (ID) { - case ITEM_PROXY_SOURCE: - return new Container_ItemProxySource(te, player); - case ITEM_PROXY_ENDPOINT: - return new Container_ItemProxyEndpoint(te, player); - } - } - return null; - } - - @Override - public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) { - final TileEntity te = world.getTileEntity(x, y, z); - if (te != null) { - switch (ID) { - case ITEM_PROXY_SOURCE: - return new Gui_ItemProxySource(te, player); - case ITEM_PROXY_ENDPOINT: - return new Gui_ItemProxyEndpoint(te, player); - } - } - return null; - } -} |
