Class HeatUtil

java.lang.Object
me.desht.pneumaticcraft.common.heat.HeatUtil

public class HeatUtil extends Object
  • Constructor Details

    • HeatUtil

      public HeatUtil()
  • Method Details

    • getColourForTemperature

      public static TintColor getColourForTemperature(int temperature)
      Get a colour in (A)RGB format for the given temperature.
      Parameters:
      temperature - the temperature
      Returns:
      the colour
    • getComparatorOutput

      public static int getComparatorOutput(int temperature)
    • getEfficiency

      public static int getEfficiency(int temperature)
      Get the efficiency of a heat-using machine based on its temperature.
      Parameters:
      temperature - the temperature, in Kelvin
      Returns:
      efficiency percentage
    • formatHeatString

      public static net.minecraft.network.chat.Component formatHeatString(int tempK)
    • formatHeatString

      public static net.minecraft.network.chat.Component formatHeatString(net.minecraft.core.Direction face, int tempK)
    • formatHeatString

      public static net.minecraft.network.chat.Component formatHeatString(String temp)
    • formatHeatString

      public static net.minecraft.network.chat.Component formatHeatString(net.minecraft.core.Direction face, String temp)
    • countExposedFaces

      public static int countExposedFaces(Collection<? extends net.minecraft.world.level.block.entity.BlockEntity> teList)