aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2018-06-20 09:53:17 +0200
committerGitHub <noreply@github.com>2018-06-20 09:53:17 +0200
commit09addd7bdb0470a0d059e3a9edfcf1ff37937eb5 (patch)
treecb5888d00e8af9b970582d757c9e318b744a0565 /src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java
parentec1aade7beab405e12fdf3cb5e283881487b68cb (diff)
parentd4625eb0284863725f4d978283ad8296ef89b502 (diff)
downloadGT5-Unofficial-09addd7bdb0470a0d059e3a9edfcf1ff37937eb5.tar.gz
GT5-Unofficial-09addd7bdb0470a0d059e3a9edfcf1ff37937eb5.tar.bz2
GT5-Unofficial-09addd7bdb0470a0d059e3a9edfcf1ff37937eb5.zip
Merge pull request #131 from GTNewHorizons/debug/chestbuffer2
New feature for chestbuffers/superbuffers:Transfer size mode. Instea…
Diffstat (limited to 'src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java')
-rw-r--r--src/main/java/gregtech/common/gui/GT_Container_ChestBuffer.java10
1 files changed, 10 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);
}