aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util
diff options
context:
space:
mode:
authorjoegnis <joegnis.yifan@gmail.com>2024-09-04 06:53:16 -0400
committerGitHub <noreply@github.com>2024-09-04 10:53:16 +0000
commitebefc70b6d41c19c61fc21f548a942a0331f7fb6 (patch)
treeb73c6844fcc8a652c83fb61c8512fa3e87cc1d0a /src/main/java/gregtech/api/util
parentead1385464310f4fddda2c5566d541c187d659fc (diff)
downloadGT5-Unofficial-ebefc70b6d41c19c61fc21f548a942a0331f7fb6.tar.gz
GT5-Unofficial-ebefc70b6d41c19c61fc21f548a942a0331f7fb6.tar.bz2
GT5-Unofficial-ebefc70b6d41c19c61fc21f548a942a0331f7fb6.zip
Fixes #17207 (#3041)
Changed methods in OverclockCalculator: - setEUtDiscount - setSpeedBoost - setHeatDiscountMultiplier Most of other changes are directly related to them. Adds a unit test. Co-authored-by: boubou19 <miisterunknown@gmail.com>
Diffstat (limited to 'src/main/java/gregtech/api/util')
-rw-r--r--src/main/java/gregtech/api/util/OverclockCalculator.java6
-rw-r--r--src/main/java/gregtech/api/util/ParallelHelper.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/util/OverclockCalculator.java b/src/main/java/gregtech/api/util/OverclockCalculator.java
index 0b27942355..55ac79f730 100644
--- a/src/main/java/gregtech/api/util/OverclockCalculator.java
+++ b/src/main/java/gregtech/api/util/OverclockCalculator.java
@@ -251,7 +251,7 @@ public class OverclockCalculator {
* Sets an EUtDiscount. 0.9 is 10% less energy. 1.1 is 10% more energy
*/
@Nonnull
- public OverclockCalculator setEUtDiscount(float aEUtDiscount) {
+ public OverclockCalculator setEUtDiscount(double aEUtDiscount) {
this.eutDiscount = aEUtDiscount;
return this;
}
@@ -260,7 +260,7 @@ public class OverclockCalculator {
* Sets a Speed Boost for the multiblock. 0.9 is 10% faster. 1.1 is 10% slower
*/
@Nonnull
- public OverclockCalculator setSpeedBoost(float aSpeedBoost) {
+ public OverclockCalculator setSpeedBoost(double aSpeedBoost) {
this.speedBoost = aSpeedBoost;
return this;
}
@@ -279,7 +279,7 @@ public class OverclockCalculator {
* Discount
*/
@Nonnull
- public OverclockCalculator setHeatDiscountMultiplier(float heatDiscountExponent) {
+ public OverclockCalculator setHeatDiscountMultiplier(double heatDiscountExponent) {
this.heatDiscountExponent = heatDiscountExponent;
return this;
}
diff --git a/src/main/java/gregtech/api/util/ParallelHelper.java b/src/main/java/gregtech/api/util/ParallelHelper.java
index 0c995cba7d..de08a59472 100644
--- a/src/main/java/gregtech/api/util/ParallelHelper.java
+++ b/src/main/java/gregtech/api/util/ParallelHelper.java
@@ -121,7 +121,7 @@ public class ParallelHelper {
/**
* Modifier which is applied on the recipe eut. Useful for GT++ machines
*/
- private float eutModifier = 1;
+ private double eutModifier = 1;
/**
* Multiplier that is applied on the output chances
*/
@@ -224,7 +224,7 @@ public class ParallelHelper {
* Sets the modifier for recipe eut. 1 does nothing 0.9 is 10% less. 1.1 is 10% more
*/
@Nonnull
- public ParallelHelper setEUtModifier(float aEUtModifier) {
+ public ParallelHelper setEUtModifier(double aEUtModifier) {
this.eutModifier = aEUtModifier;
return this;
}