diff options
| author | Lance5057 <Lance5057@gmail.com> | 2015-02-16 21:07:58 -0600 |
|---|---|---|
| committer | Lance5057 <Lance5057@gmail.com> | 2015-02-16 21:08:30 -0600 |
| commit | 6853c1789e7c211719463a58fa2f7ce7941648be (patch) | |
| tree | 3f7246e265fd3f478036a4fb4fa212498fbd7b5a /src/main/java/gmail/Lance5057/proxy/CommonProxy.java | |
| parent | 3cdcbf30e945dcc65a0d40436224f70cbff7cfd4 (diff) | |
Crest Mount Attempt 3 Part 2
Diffstat (limited to 'src/main/java/gmail/Lance5057/proxy/CommonProxy.java')
| -rw-r--r-- | src/main/java/gmail/Lance5057/proxy/CommonProxy.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main/java/gmail/Lance5057/proxy/CommonProxy.java b/src/main/java/gmail/Lance5057/proxy/CommonProxy.java index 69d30cc..2171029 100644 --- a/src/main/java/gmail/Lance5057/proxy/CommonProxy.java +++ b/src/main/java/gmail/Lance5057/proxy/CommonProxy.java @@ -1,6 +1,9 @@ package gmail.Lance5057.proxy; import gmail.Lance5057.com.mod_TinkersDefense; +import gmail.Lance5057.containers.Container_CrestMount; +import gmail.Lance5057.gui.Gui_CrestMount; +import gmail.Lance5057.tileentities.TileEntity_CrestMount; import net.minecraft.client.model.ModelBiped; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; @@ -35,20 +38,21 @@ public class CommonProxy implements IGuiHandler { if (ID == mod_TinkersDefense.GUI_ITEM_INV) { // Use the player's held item to create the inventory - //return new Container_CrestMount(player.inventory, new TileEntity_CrestMount()); + return new Container_CrestMount(player, player.inventory, new TileEntity_CrestMount()); } return null; } @Override public Object getClientGuiElement(int ID, EntityPlayer player, - World world, int x, int y, int z) { + World world, int x, int y, int z) + { if (ID == mod_TinkersDefense.GUI_ITEM_INV) { // We have to cast the new container as our custom class // and pass in currently held item for the inventory - //return new Gui_CrestMount((Container_CrestMount) new Container_CrestMount(player.inventory, new TileEntity_CrestMount())); + return new Gui_CrestMount((Container_CrestMount) new Container_CrestMount(player, player.inventory, new TileEntity_CrestMount())); } return null; - } - }
\ No newline at end of file + } +}
\ No newline at end of file |
