diff options
author | miozune <miozune@gmail.com> | 2024-08-16 22:26:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-16 22:26:16 +0900 |
commit | 83ebeadd3b867f45914972f4573211b3324ca433 (patch) | |
tree | 02acdcbb7cda6ee8c72cf7b4f575aa6591373d74 /src/main/java/gregtech/api/graphs | |
parent | 07610983b13813893b482e2c1a050355fd007c60 (diff) | |
download | GT5-Unofficial-83ebeadd3b867f45914972f4573211b3324ca433.tar.gz GT5-Unofficial-83ebeadd3b867f45914972f4573211b3324ca433.tar.bz2 GT5-Unofficial-83ebeadd3b867f45914972f4573211b3324ca433.zip |
Cleanup (#2904)
* Remove redundant inputSeparation=true call
* Remove deprecated MetaTileEntity#isDisplaySecondaryDescription
* Always use ModularUI
* Remove useModularUI
* Remove unused GUI features
* Remove IGlobalWirelessEnergy
* Remove CommonValues.V & CommonValues.VN
* More deprecation cleanup
---------
Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/api/graphs')
-rw-r--r-- | src/main/java/gregtech/api/graphs/paths/PowerNodePath.java | 36 |
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(); } |