diff options
author | Jason Mitchell <mitchej@gmail.com> | 2023-05-01 02:45:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 11:45:56 +0200 |
commit | b2c8cfb4ec8b82337a95f51364277964ec968b52 (patch) | |
tree | d4cf94acc93249cd649b33ec13c5b0d75f1f75db /src/main/java/gtPlusPlus/api/thermal/sample/ItemThermalContainer.java | |
parent | d2eda84e457d549ad9a51f40e9dd159147a141f8 (diff) | |
download | GT5-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/ItemThermalContainer.java')
-rw-r--r-- | src/main/java/gtPlusPlus/api/thermal/sample/ItemThermalContainer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/gtPlusPlus/api/thermal/sample/ItemThermalContainer.java b/src/main/java/gtPlusPlus/api/thermal/sample/ItemThermalContainer.java index 57eb1d2c43..ff0cf06188 100644 --- a/src/main/java/gtPlusPlus/api/thermal/sample/ItemThermalContainer.java +++ b/src/main/java/gtPlusPlus/api/thermal/sample/ItemThermalContainer.java @@ -46,6 +46,7 @@ public class ItemThermalContainer extends Item implements IThermalContainerItem this.maxExtract = arg0; } + @Override public int receiveThermalEnergy(ItemStack arg0, int arg1, boolean arg2) { if (arg0.getTagCompound() == null) { arg0.stackTagCompound = new NBTTagCompound(); @@ -59,6 +60,7 @@ public class ItemThermalContainer extends Item implements IThermalContainerItem return arg4; } + @Override public int extractThermalEnergy(ItemStack arg0, int arg1, boolean arg2) { if (arg0.stackTagCompound != null && arg0.stackTagCompound.hasKey("ThermalEnergy")) { int arg3 = arg0.stackTagCompound.getInteger("ThermalEnergy"); @@ -73,12 +75,14 @@ public class ItemThermalContainer extends Item implements IThermalContainerItem } } + @Override public int getThermalEnergyStored(ItemStack arg0) { return arg0.stackTagCompound != null && arg0.stackTagCompound.hasKey("ThermalEnergy") ? arg0.stackTagCompound.getInteger("ThermalEnergy") : 0; } + @Override public int getMaxThermalEnergyStored(ItemStack arg0) { return this.capacity; } |