From b2c8cfb4ec8b82337a95f51364277964ec968b52 Mon Sep 17 00:00:00 2001 From: Jason Mitchell Date: Mon, 1 May 2023 02:45:56 -0700 Subject: ForgeDirection (#608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/gtPlusPlus/api/thermal/sample/TileThermalHandler.java') 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(); } -- cgit