diff options
| author | Lance5057 <Lance5057@gmail.com> | 2016-03-18 06:14:33 -0500 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2016-03-18 06:14:33 -0500 |
| commit | ba8feb526da0a1ce15a179e1e5ee44582f769768 (patch) | |
| tree | 475cddb02865c13c84a9a36800d5afaf9de58e15 /src/main/java/lance5057/tDefense/proxy/CommonProxy.java | |
| parent | d01b86cd71b4a805f273bd662a38aacafa803cf4 (diff) | |
Added modifiers, beautified code
Diffstat (limited to 'src/main/java/lance5057/tDefense/proxy/CommonProxy.java')
| -rw-r--r-- | src/main/java/lance5057/tDefense/proxy/CommonProxy.java | 96 |
1 files changed, 47 insertions, 49 deletions
diff --git a/src/main/java/lance5057/tDefense/proxy/CommonProxy.java b/src/main/java/lance5057/tDefense/proxy/CommonProxy.java index 361851b..7b39954 100644 --- a/src/main/java/lance5057/tDefense/proxy/CommonProxy.java +++ b/src/main/java/lance5057/tDefense/proxy/CommonProxy.java @@ -13,60 +13,58 @@ import net.minecraft.world.World; import cpw.mods.fml.common.network.IGuiHandler; import cpw.mods.fml.common.network.simpleimpl.MessageContext; -public class CommonProxy implements IGuiHandler +public class CommonProxy implements IGuiHandler { - public void registerRenderers() - { - } - - public void registerTileEntitySpecialRenderer() - { - - } - - public EntityPlayer getPlayerEntity(MessageContext ctx) - { - return ctx.getServerHandler().playerEntity; - } - - public ModelBiped getArmorModel(int id) - { - return null; - } + public void registerRenderers() + { + } - public World getClientWorld() - { - return null; - } + public void registerTileEntitySpecialRenderer() + { - @Override - public Object getServerGuiElement(int ID, EntityPlayer player, - World world, int x, int y, int z) + } + + public EntityPlayer getPlayerEntity(MessageContext ctx) + { + return ctx.getServerHandler().playerEntity; + } + + public ModelBiped getArmorModel(int id) + { + return null; + } + + public World getClientWorld() + { + return null; + } + + @Override + public Object getServerGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) + { + if(ID == TinkersDefense.GUI_CREST_INV) { - if (ID == TinkersDefense.GUI_CREST_INV) - { - return new Container_CrestMount(player.inventory, (TileEntity_CrestMount)world.getTileEntity(x, y, z)); - } - if (ID == TinkersDefense.GUI_ANVIL_INV) - { - return new Container_FinishingAnvil(player.inventory, (TileEntity_FinishingAnvil)world.getTileEntity(x, y, z)); - } - - return null; + return new Container_CrestMount(player.inventory, (TileEntity_CrestMount) world.getTileEntity(x, y, z)); } + if(ID == TinkersDefense.GUI_ANVIL_INV) + { + return new Container_FinishingAnvil(player.inventory, (TileEntity_FinishingAnvil) world.getTileEntity(x, y, z)); + } + + return null; + } - @Override - public Object getClientGuiElement(int ID, EntityPlayer player, - World world, int x, int y, int z) + @Override + public Object getClientGuiElement(int ID, EntityPlayer player, World world, int x, int y, int z) + { + if(ID == TinkersDefense.GUI_CREST_INV) + { + return new Gui_CrestMount(player.inventory, (TileEntity_CrestMount) world.getTileEntity(x, y, z)); + } + if(ID == TinkersDefense.GUI_ANVIL_INV) { - if (ID == TinkersDefense.GUI_CREST_INV) - { - return new Gui_CrestMount(player.inventory, (TileEntity_CrestMount)world.getTileEntity(x, y, z)); - } - if (ID == TinkersDefense.GUI_ANVIL_INV) - { - return new Gui_FinishingAnvil(player.inventory, (TileEntity_FinishingAnvil)world.getTileEntity(x, y, z)); - } - return null; + return new Gui_FinishingAnvil(player.inventory, (TileEntity_FinishingAnvil) world.getTileEntity(x, y, z)); } -}
\ No newline at end of file + return null; + } +} |
