diff options
author | Dream-Master <dream-master@gmx.net> | 2018-06-21 19:20:27 +0200 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2018-06-21 19:20:27 +0200 |
commit | e916f91c2086b750fff1ca5818599e11c890e61c (patch) | |
tree | 98b39ffcc990761d0ef0ec05c921930a10824b1c /src/main/java/gregtech/common | |
parent | e3d224031b8bc1b579705ebe42b96ca73e651c38 (diff) | |
parent | 09addd7bdb0470a0d059e3a9edfcf1ff37937eb5 (diff) | |
download | GT5-Unofficial-e916f91c2086b750fff1ca5818599e11c890e61c.tar.gz GT5-Unofficial-e916f91c2086b750fff1ca5818599e11c890e61c.tar.bz2 GT5-Unofficial-e916f91c2086b750fff1ca5818599e11c890e61c.zip |
Merge branch 'experimental' of https://github.com/GTNewHorizons/GT5-Unofficial into experimental
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r-- | src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java | 10 | ||||
-rw-r--r-- | src/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java b/src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java index 4ea3fed295..016d0889f7 100644 --- a/src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java +++ b/src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java @@ -25,6 +25,7 @@ public class GT_Container_ChestBuffer addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 8, 63, false, true, 1)); addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 26, 63, false, true, 1)); addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 44, 63, false, true, 1)); + addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 27, 62, 63, false, true, 1)); } public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer) { @@ -63,6 +64,15 @@ public class GT_Container_ChestBuffer } return null; } + if (aSlotIndex == 30) { + ((GT_MetaTileEntity_ChestBuffer) this.mTileEntity.getMetaTileEntity()).bStockingMode = (!((GT_MetaTileEntity_ChestBuffer) this.mTileEntity.getMetaTileEntity()).bStockingMode); + if (((GT_MetaTileEntity_ChestBuffer) this.mTileEntity.getMetaTileEntity()).bStockingMode) { + GT_Utility.sendChatToPlayer(aPlayer, trans("217","Stocking mode. Keeps this many items in destination input slots.")); + } else { + GT_Utility.sendChatToPlayer(aPlayer, trans("218", "Transfer size mode. Add exactly this many items in destination input slots as long as there is room.")); + } + return null; + } } return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer); } diff --git a/src/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java b/src/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java index 3a0bd80bf3..5a59cb5aa9 100644 --- a/src/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java +++ b/src/main/java/gregtech/common/gui/GT_Container_SuperBuffer.java @@ -20,6 +20,7 @@ public class GT_Container_SuperBuffer addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 8, 63, false, true, 1)); addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 26, 63, false, true, 1)); addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 44, 63, false, true, 1)); + addSlotToContainer(new GT_Slot_Holo(this.mTileEntity, 256, 62, 63, false, true, 1)); } public ItemStack slotClick(int aSlotIndex, int aMouseclick, int aShifthold, EntityPlayer aPlayer) { @@ -58,6 +59,15 @@ public class GT_Container_SuperBuffer } return null; } + if (aSlotIndex == 3) { + ((GT_MetaTileEntity_ChestBuffer) this.mTileEntity.getMetaTileEntity()).bStockingMode = (!((GT_MetaTileEntity_ChestBuffer) this.mTileEntity.getMetaTileEntity()).bStockingMode); + if (((GT_MetaTileEntity_ChestBuffer) this.mTileEntity.getMetaTileEntity()).bStockingMode) { + GT_Utility.sendChatToPlayer(aPlayer, trans("217","Stocking mode. Keeps this many items in destination input slots.")); + } else { + GT_Utility.sendChatToPlayer(aPlayer, trans("218", "Transfer size mode. Add exactly this many items in destination input slots as long as there is room.")); + } + return null; + } } return super.slotClick(aSlotIndex, aMouseclick, aShifthold, aPlayer); } |