aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-03-02 14:37:13 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-03-02 14:37:13 +1000
commit718b0e6773693f30b3c61a0a069a446a6c8f6c4d (patch)
treea07d8be68c634a697dce11220db730f371e31b84 /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation
parent3fa1a63540b9bd279d6ac1c91e37c4eb29b024a1 (diff)
downloadGT5-Unofficial-718b0e6773693f30b3c61a0a069a446a6c8f6c4d.tar.gz
GT5-Unofficial-718b0e6773693f30b3c61a0a069a446a6c8f6c4d.tar.bz2
GT5-Unofficial-718b0e6773693f30b3c61a0a069a446a6c8f6c4d.zip
$ Findbugs cleanup.
% Revised Tesseract run-time costs.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java21
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java21
2 files changed, 33 insertions, 9 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
index 6417170984..8f7539f268 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractGenerator.java
@@ -34,8 +34,8 @@ import net.minecraftforge.fluids.*;
public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_BasicTank {
- public static int TESSERACT_ENERGY_COST_DIMENSIONAL = 2048;
- public static int TESSERACT_ENERGY_COST = 512;
+ public static int TESSERACT_ENERGY_COST_DIMENSIONAL = 512;
+ public static int TESSERACT_ENERGY_COST = 128;
public byte isWorking = 0;
public int oFrequency = 0;
public int mNeededEnergy = 0;
@@ -168,8 +168,12 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
@Override
public void onConfigLoad(final GT_Config aConfig) {
- TESSERACT_ENERGY_COST = 512;
- TESSERACT_ENERGY_COST_DIMENSIONAL = 2048;
+ int J = 1;
+ if (CORE.GTNH) {
+ J = 4;
+ }
+ TESSERACT_ENERGY_COST = 128*J;
+ TESSERACT_ENERGY_COST_DIMENSIONAL = 512*J;
}
@Override
@@ -534,8 +538,15 @@ public class GT_MetaTileEntity_TesseractGenerator extends GT_MetaTileEntity_Basi
if (!this.getBaseMetaTileEntity().isAllowedToWork()) {
return false;
}
- this.mNeededEnergy += (aTerminal.getBaseMetaTileEntity().getWorld() == this.getBaseMetaTileEntity().getWorld()
+ int J = (aTerminal.getBaseMetaTileEntity().getWorld() == this.getBaseMetaTileEntity().getWorld()
? TESSERACT_ENERGY_COST : TESSERACT_ENERGY_COST_DIMENSIONAL);
+
+ if (CORE.GTNH) {
+ J *= 4;
+ }
+
+ this.mNeededEnergy += J;
+
return true;
}
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
index 3d4aa98032..f5cc4a0cd5 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/automation/GT_MetaTileEntity_TesseractTerminal.java
@@ -31,6 +31,8 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
public UUID mOwner;
public boolean mDidWork = false;
public static boolean sInterDimensionalTesseractAllowed = true;
+ private static int TESSERACT_ENERGY_COST = 128;
+ private static int TESSERACT_ENERGY_COST_DIMENSIONAL = 512;
public GT_MetaTileEntity_TesseractTerminal(final int aID, final String aName, final String aNameRegional,
final int aTier) {
@@ -79,12 +81,12 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public long getMinimumStoredEU() {
- return this.getBaseMetaTileEntity().getEUCapacity() / 2;
+ return (this.getBaseMetaTileEntity().getEUCapacity() / 100);
}
@Override
public long maxEUInput() {
- return 128;
+ return TESSERACT_ENERGY_COST_DIMENSIONAL;
}
@Override
@@ -94,7 +96,7 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public long maxEUStore() {
- return 512 * 32;
+ return TESSERACT_ENERGY_COST_DIMENSIONAL * 8 * 32;
}
@Override
@@ -132,6 +134,14 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
@Override
public void onConfigLoad(final GT_Config aConfig) {
sInterDimensionalTesseractAllowed = true;
+ if (CORE.GTNH) {
+ TESSERACT_ENERGY_COST = 512;
+ TESSERACT_ENERGY_COST_DIMENSIONAL = 2048;
+ }
+ else {
+ TESSERACT_ENERGY_COST = 128;
+ TESSERACT_ENERGY_COST_DIMENSIONAL = 512;
+ }
}
@Override
@@ -485,7 +495,10 @@ public class GT_MetaTileEntity_TesseractTerminal extends GT_MetaTileEntity_Basic
public String[] getDescription() {
return new String[] { this.mDescription,
"Accesses Tesseract Generators remotely",
- "Connect with pipes to extract items",
+ "Connect with pipes to extract items or fluids",
+ "Outputs from the back face",
+ "Consumes "+TESSERACT_ENERGY_COST+"EU/t for same dimension transfers",
+ "Consumes "+TESSERACT_ENERGY_COST_DIMENSIONAL+"EU/t for cross dimensional transfers",
CORE.GT_Tooltip };
}