aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorHoleFish <48403212+HoleFish@users.noreply.github.com>2024-07-29 21:33:23 +0800
committerGitHub <noreply@github.com>2024-07-29 20:33:23 +0700
commitf432925ec37fafc51a03bfa407f784aedb54c09c (patch)
tree3802616a142798fe25f27e9a521d69ad033bcee5 /src/main/java/gregtech/api/util
parent8b949a2a7b871661f52e0ee71fc82b0af691b991 (diff)
downloadGT5-Unofficial-f432925ec37fafc51a03bfa407f784aedb54c09c.tar.gz
GT5-Unofficial-f432925ec37fafc51a03bfa407f784aedb54c09c.tar.bz2
GT5-Unofficial-f432925ec37fafc51a03bfa407f784aedb54c09c.zip
Remove old integer methods in OC calculator and parallel helper (#2779)
remove old integer method
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/AdvancedFusionOverclockDescriber.java8
-rw-r--r--src/main/java/gregtech/api/util/GT_OverclockCalculator.java20
2 files changed, 4 insertions, 24 deletions
diff --git a/src/main/java/gregtech/api/util/AdvancedFusionOverclockDescriber.java b/src/main/java/gregtech/api/util/AdvancedFusionOverclockDescriber.java
index 7a6e609f93..606716310f 100644
--- a/src/main/java/gregtech/api/util/AdvancedFusionOverclockDescriber.java
+++ b/src/main/java/gregtech/api/util/AdvancedFusionOverclockDescriber.java
@@ -13,11 +13,11 @@ public class AdvancedFusionOverclockDescriber extends FusionOverclockDescriber {
}
@Override
- protected int getEUtIncreasePerOC() {
- return 2;
+ protected double getEUtIncreasePerOC() {
+ return 4.0;
}
- protected int getDurationDecreasePerOC() {
- return 2;
+ protected double getDurationDecreasePerOC() {
+ return 4.0;
}
}
diff --git a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java
index 3a08988339..91cdf865ad 100644
--- a/src/main/java/gregtech/api/util/GT_OverclockCalculator.java
+++ b/src/main/java/gregtech/api/util/GT_OverclockCalculator.java
@@ -295,16 +295,6 @@ public class GT_OverclockCalculator {
}
/**
- * @deprecated Deprecated in favor of {@link #setEUtIncreasePerOC(double)}. Calls
- * {@link #setEUtIncreasePerOC(double)} where the given value is 2^eutIncreasePerOC
- */
- @Deprecated
- @Nonnull
- public GT_OverclockCalculator setEUtIncreasePerOC(int eutIncreasePerOC) {
- return setEUtIncreasePerOC(Math.pow(2, eutIncreasePerOC));
- }
-
- /**
* Sets the amount that the eut would be multiplied by per overclock. Do not set as 1(ONE) if the duration decrease
* is also 1(ONE)!
*/
@@ -317,16 +307,6 @@ public class GT_OverclockCalculator {
}
/**
- * @deprecated Deprecated in favor of {@link #setDurationDecreasePerOC(double)}. Calls
- * {@link #setDurationDecreasePerOC(double)} where the given value is 2^durationDecreasePerOC
- */
- @Deprecated
- @Nonnull
- public GT_OverclockCalculator setDurationDecreasePerOC(int durationDecreasePerOC) {
- return setDurationDecreasePerOC(Math.pow(2, durationDecreasePerOC));
- }
-
- /**
* Sets the amount that the duration would be divided by per overclock. Do not set as 1(ONE) if the eut increase is
* also 1(ONE)!
*/