Class Mek2PNCHeatProvider.Mek2PNCHeatAdapter
java.lang.Object
me.desht.pneumaticcraft.api.heat.IHeatExchangerAdapter.Simple<mekanism.api.heat.IHeatHandler>
me.desht.pneumaticcraft.common.thirdparty.mekanism.Mek2PNCHeatProvider.Mek2PNCHeatAdapter
- All Implemented Interfaces:
IHeatExchangerAdapter,IHeatExchangerLogic,net.minecraftforge.common.util.INBTSerializable<net.minecraft.nbt.CompoundTag>
- Enclosing class:
- Mek2PNCHeatProvider
public static class Mek2PNCHeatProvider.Mek2PNCHeatAdapter
extends IHeatExchangerAdapter.Simple<mekanism.api.heat.IHeatHandler>
-
Nested Class Summary
Nested classes/interfaces inherited from interface me.desht.pneumaticcraft.api.heat.IHeatExchangerAdapter
IHeatExchangerAdapter.Simple<CAP> -
Field Summary
Fields inherited from class me.desht.pneumaticcraft.api.heat.IHeatExchangerAdapter.Simple
ambientTemperature, foreignHeatCap, sideFields inherited from interface me.desht.pneumaticcraft.api.heat.IHeatExchangerLogic
ALL_BLOCKS -
Constructor Summary
ConstructorsConstructorDescriptionMek2PNCHeatAdapter(net.minecraft.core.Direction side, net.minecraftforge.common.util.LazyOptional<mekanism.api.heat.IHeatHandler> heatHandler, double ambientTemperature, double thermalResistanceMult) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeat(double amount) Adds heat (= deltaT * Thermal Capacity) to this exchanger.doubleGet the heat exchanger's current (precise) temperature.doubleGet this heat exchanger's thermal capacity.doubleGet this heat exchanger's thermal resistance.Methods inherited from class me.desht.pneumaticcraft.api.heat.IHeatExchangerAdapter.Simple
getAmbientTemperature, isSideConnectedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.desht.pneumaticcraft.api.heat.IHeatExchangerAdapter
getTemperatureAsInt, initializeAmbientTemperature, initializeAsHull, setTemperature, setThermalCapacity, setThermalResistance, tickMethods inherited from interface me.desht.pneumaticcraft.api.heat.IHeatExchangerLogic
addConnectedExchanger, addConnectedExchanger, deserializeNBT, getHeatBehaviour, removeConnectedExchanger, removeConnectedExchanger, serializeNBT
-
Constructor Details
-
Mek2PNCHeatAdapter
public Mek2PNCHeatAdapter(net.minecraft.core.Direction side, net.minecraftforge.common.util.LazyOptional<mekanism.api.heat.IHeatHandler> heatHandler, double ambientTemperature, double thermalResistanceMult)
-
-
Method Details
-
getTemperature
public double getTemperature()Description copied from interface:IHeatExchangerLogicGet the heat exchanger's current (precise) temperature. This should only be used on the server where precise values are required; it isn't synced to clients by default for performance reasons. UseIHeatExchangerLogic.getTemperatureAsInt()there instead.- Returns:
- the temperature
-
getThermalResistance
public double getThermalResistance()Description copied from interface:IHeatExchangerLogicGet this heat exchanger's thermal resistance. SeeIHeatExchangerLogic.setThermalResistance(double)for more information on thermal resistance.- Returns:
- the thermal resistance; higher resistance means slower heat transfer
-
getThermalCapacity
public double getThermalCapacity()Description copied from interface:IHeatExchangerLogicGet this heat exchanger's thermal capacity. SeeIHeatExchangerLogic.setThermalCapacity(double)for more information.- Returns:
- the thermal capacity.
-
addHeat
public void addHeat(double amount) Description copied from interface:IHeatExchangerLogicAdds heat (= deltaT * Thermal Capacity) to this exchanger. Negative values will remove heat.- Parameters:
amount- the heat amount
-