aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java
diff options
context:
space:
mode:
authorJason Mitchell <mitchej@gmail.com>2023-05-01 02:45:56 -0700
committerGitHub <noreply@github.com>2023-05-01 11:45:56 +0200
commitb2c8cfb4ec8b82337a95f51364277964ec968b52 (patch)
treed4cf94acc93249cd649b33ec13c5b0d75f1f75db /src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java
parentd2eda84e457d549ad9a51f40e9dd159147a141f8 (diff)
downloadGT5-Unofficial-b2c8cfb4ec8b82337a95f51364277964ec968b52.tar.gz
GT5-Unofficial-b2c8cfb4ec8b82337a95f51364277964ec968b52.tar.bz2
GT5-Unofficial-b2c8cfb4ec8b82337a95f51364277964ec968b52.zip
ForgeDirection (#608)
* ForgeDirection WIP * Fix GTPP_Render_MachineBlock Fix handling of getTexture with facing mask for pipes Kill a bunch of magic numbers * spotlessApply (#612) Co-authored-by: GitHub GTNH Actions <> * Bump bw/tt deps --------- Co-authored-by: Léa Gris <lea.gris@noiraude.net> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java')
-rw-r--r--src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java b/src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java
index 60efc687dc..a2c29ba76a 100644
--- a/src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java
+++ b/src/main/java/gtPlusPlus/api/thermal/energy/ThermalStorage.java
@@ -85,6 +85,7 @@ public class ThermalStorage implements IThermalStorage {
}
}
+ @Override
public int receiveThermalEnergy(int arg0, boolean arg1) {
int arg2 = Math.min(this.capacity - this.thermal_energy, Math.min(this.maxReceive, arg0));
if (!arg1) {
@@ -94,6 +95,7 @@ public class ThermalStorage implements IThermalStorage {
return arg2;
}
+ @Override
public int extractThermalEnergy(int arg0, boolean arg1) {
int arg2 = Math.min(this.thermal_energy, Math.min(this.maxExtract, arg0));
if (!arg1) {
@@ -103,10 +105,12 @@ public class ThermalStorage implements IThermalStorage {
return arg2;
}
+ @Override
public int getThermalEnergyStored() {
return this.thermal_energy;
}
+ @Override
public int getMaxThermalEnergyStored() {
return this.capacity;
}