aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/graphs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/graphs')
-rw-r--r--src/main/java/gregtech/api/graphs/paths/PowerNodePath.java36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
index 8a869c333e..d09cf059e9 100644
--- a/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
+++ b/src/main/java/gregtech/api/graphs/paths/PowerNodePath.java
@@ -85,42 +85,6 @@ public class PowerNodePath extends NodePath {
}
}
- // if no amps pass through for more than 0.5 second reduce them to minimize wrong results
- // but still allow the player to see if activity is happening
- @Deprecated
- public long getAmps() {
- int tTime = MinecraftServer.getServer()
- .getTickCounter() - 10;
- if (mTick < tTime) {
- reset(tTime - mTick);
- mTick = tTime;
- }
- return mAmps;
- }
-
- @Deprecated
- public long getVoltage(MetaPipeEntity aCable) {
- int tLoss = 0;
- if (mCountUp) {
- for (MetaPipeEntity mPipe : mPipes) {
- GT_MetaPipeEntity_Cable tCable = (GT_MetaPipeEntity_Cable) mPipe;
- tLoss += tCable.mCableLossPerMeter;
- if (aCable == tCable) {
- return Math.max(mVoltage - tLoss, 0);
- }
- }
- } else {
- for (int i = mPipes.length - 1; i >= 0; i--) {
- GT_MetaPipeEntity_Cable tCable = (GT_MetaPipeEntity_Cable) mPipes[i];
- tLoss += tCable.mCableLossPerMeter;
- if (aCable == tCable) {
- return Math.max(mVoltage - tLoss, 0);
- }
- }
- }
- return -1;
- }
-
public long getAmperage() {
return avgAmperageCounter.getLast();
}