aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/graphs
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2024-08-16 22:26:16 +0900
committerGitHub <noreply@github.com>2024-08-16 22:26:16 +0900
commit83ebeadd3b867f45914972f4573211b3324ca433 (patch)
tree02acdcbb7cda6ee8c72cf7b4f575aa6591373d74 /src/main/java/gregtech/api/graphs
parent07610983b13813893b482e2c1a050355fd007c60 (diff)
downloadGT5-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.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();
}