aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.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/sample/TileThermalHandler.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/sample/TileThermalHandler.java')
-rw-r--r--src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java b/src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java
index 8ee401c474..a41b6428cb 100644
--- a/src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java
+++ b/src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java
@@ -11,32 +11,39 @@ public class TileThermalHandler extends TileEntity implements IThermalHandler {
protected ThermalStorage storage = new ThermalStorage(32000);
+ @Override
public void readFromNBT(NBTTagCompound arg0) {
super.readFromNBT(arg0);
this.storage.readFromNBT(arg0);
}
+ @Override
public void writeToNBT(NBTTagCompound arg0) {
super.writeToNBT(arg0);
this.storage.writeToNBT(arg0);
}
+ @Override
public boolean canConnectThermalEnergy(ForgeDirection arg0) {
return true;
}
+ @Override
public int receiveThermalEnergy(ForgeDirection arg0, int arg1, boolean arg2) {
return this.storage.receiveThermalEnergy(arg1, arg2);
}
+ @Override
public int extractThermalEnergy(ForgeDirection arg0, int arg1, boolean arg2) {
return this.storage.extractThermalEnergy(arg1, arg2);
}
+ @Override
public int getThermalEnergyStored(ForgeDirection arg0) {
return this.storage.getThermalEnergyStored();
}
+ @Override
public int getMaxThermalEnergyStored(ForgeDirection arg0) {
return this.storage.getMaxThermalEnergyStored();
}