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>
  • 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: IHeatExchangerLogic
      Get 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. Use IHeatExchangerLogic.getTemperatureAsInt() there instead.
      Returns:
      the temperature
    • getThermalResistance

      public double getThermalResistance()
      Description copied from interface: IHeatExchangerLogic
      Get this heat exchanger's thermal resistance. See IHeatExchangerLogic.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: IHeatExchangerLogic
      Get this heat exchanger's thermal capacity. See IHeatExchangerLogic.setThermalCapacity(double) for more information.
      Returns:
      the thermal capacity.
    • addHeat

      public void addHeat(double amount)
      Description copied from interface: IHeatExchangerLogic
      Adds heat (= deltaT * Thermal Capacity) to this exchanger. Negative values will remove heat.
      Parameters:
      amount - the heat amount