Class HeatUtil
java.lang.Object
me.desht.pneumaticcraft.common.heat.HeatUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intcountExposedFaces(Collection<? extends net.minecraft.world.level.block.entity.BlockEntity> teList) static net.minecraft.network.chat.ComponentformatHeatString(int tempK) static net.minecraft.network.chat.ComponentformatHeatString(String temp) static net.minecraft.network.chat.ComponentformatHeatString(net.minecraft.core.Direction face, int tempK) static net.minecraft.network.chat.ComponentformatHeatString(net.minecraft.core.Direction face, String temp) static TintColorgetColourForTemperature(int temperature) Get a colour in (A)RGB format for the given temperature.static intgetComparatorOutput(int temperature) static intgetEfficiency(int temperature) Get the efficiency of a heat-using machine based on its temperature.
-
Constructor Details
-
HeatUtil
public HeatUtil()
-
-
Method Details
-
getColourForTemperature
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
-
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)
-