diff options
| author | Detrav <witalyezep@gmail.com> | 2016-10-30 18:26:18 +0300 |
|---|---|---|
| committer | Detrav <witalyezep@gmail.com> | 2016-10-30 18:26:18 +0300 |
| commit | 4c7dc978fd515db743214f6e7d116bb7ee97fa97 (patch) | |
| tree | ab8835a87cf28daf8c099c263e84c1de09d9555f /src/main/java/com/detrav/proxies | |
| parent | 09327089161000d3b538e0df5f44ab5c5250e6ec (diff) | |
| download | GT5-Unofficial-4c7dc978fd515db743214f6e7d116bb7ee97fa97.tar.gz GT5-Unofficial-4c7dc978fd515db743214f6e7d116bb7ee97fa97.tar.bz2 GT5-Unofficial-4c7dc978fd515db743214f6e7d116bb7ee97fa97.zip | |
Update Anvil gui
Diffstat (limited to 'src/main/java/com/detrav/proxies')
| -rw-r--r-- | src/main/java/com/detrav/proxies/CommonProxy.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/com/detrav/proxies/CommonProxy.java b/src/main/java/com/detrav/proxies/CommonProxy.java index 74eed0a3cf..a9eaf3156b 100644 --- a/src/main/java/com/detrav/proxies/CommonProxy.java +++ b/src/main/java/com/detrav/proxies/CommonProxy.java @@ -5,6 +5,8 @@ import com.detrav.enums.DetravItemList; import com.detrav.enums.DetravSimpleItems; import com.detrav.events.DetravEntityDropEvent; import com.detrav.gui.DetravGuiProPick; +import com.detrav.gui.DetravPortableAnvilGui; +import com.detrav.gui.containers.DetravPortableAnvilContainer; import com.detrav.gui.containers.DetravPortableChargerContainer; import com.detrav.gui.DetravPortableChargerGui; import com.detrav.items.DetravMetaGeneratedTool01; @@ -63,6 +65,8 @@ public class CommonProxy implements IGuiHandler { return null; case DetravPortableChargerGui.GUI_ID: return new DetravPortableChargerContainer(player.inventory,world,player.getCurrentEquippedItem()); + case DetravPortableAnvilGui.GUI_ID: + return new DetravPortableAnvilContainer(player.inventory,world,player.getCurrentEquippedItem()); default: return null; } @@ -75,6 +79,8 @@ public class CommonProxy implements IGuiHandler { return new DetravGuiProPick(); case DetravPortableChargerGui.GUI_ID: return new DetravPortableChargerGui(player.inventory,world,player.getCurrentEquippedItem()); + case DetravPortableAnvilGui.GUI_ID: + return new DetravPortableAnvilGui(player.inventory,world,player.getCurrentEquippedItem()); default: return null; } @@ -91,11 +97,16 @@ public class CommonProxy implements IGuiHandler { player.openGui(DetravScannerMod.instance, DetravPortableChargerGui.GUI_ID,player.worldObj,(int)player.posX,(int)player.posY,(int)player.posZ); } + public void openPortableAnvilGui(EntityPlayer player) + { + player.openGui(DetravScannerMod.instance, DetravPortableAnvilGui.GUI_ID,player.worldObj,(int)player.posX,(int)player.posY,(int)player.posZ); + } + public void onPreInit() { - + } public void sendPlayerExeption(String s) { |
