aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2019-08-24 22:00:08 +0200
committerGitHub <noreply@github.com>2019-08-24 22:00:08 +0200
commitffc61d79bf48fc67d97276042fff5ba47fb04072 (patch)
tree4870bf65f2e532fca82bae4d07fbe2449377505d /src
parent9d0470ac20ae37833e78297e7c9234ba97117fc4 (diff)
parent0ea2fe86b5c0092e5507b39d95e1874fb41687be (diff)
downloadGT5-Unofficial-ffc61d79bf48fc67d97276042fff5ba47fb04072.tar.gz
GT5-Unofficial-ffc61d79bf48fc67d97276042fff5ba47fb04072.tar.bz2
GT5-Unofficial-ffc61d79bf48fc67d97276042fff5ba47fb04072.zip
Merge pull request #198 from GTNewHorizons/add_pump_debug_info
Add some additional debug information to pumps;
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java
index 346ce14f1e..dcb516efa5 100644
--- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java
+++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Pump.java
@@ -26,6 +26,8 @@ import net.minecraftforge.fluids.IFluidBlock;
import net.minecraftforge.fluids.IFluidHandler;
import java.util.ArrayDeque;
+import java.util.ArrayList;
+import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
@@ -482,6 +484,19 @@ public class GT_MetaTileEntity_Pump extends GT_MetaTileEntity_Hatch {
return true;
}
+ @Override
+ public ArrayList<String> getSpecialDebugInfo(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer, int aLogLevel, ArrayList<String> aList) {
+ aList.addAll(Arrays.asList("Primary pumping fluid: " + (this.mPrimaryPumpedBlock != null ? this.mPrimaryPumpedBlock.getLocalizedName() : "None"),
+ "Secondary pumping fluid: " + (this.mSecondaryPumpedBlock != null ? this.mSecondaryPumpedBlock.getLocalizedName() : "None"),
+ "Pumps below: " + mPumpCountBelow,
+ "Queue size: " + mPumpList.size(),
+ "Pump head at Y: " + getYOfPumpHead(),
+ "Pump timer: " + mPumpTimer,
+ "Meta Entity Timer: " + getBaseMetaTileEntity().getTimer()));
+ return aList;
+
+ }
+
@Override
public boolean isSimpleMachine() {