Sets the value of the specified trait for the given entity. It will likely be replaced next tick for any trait other than core.
createModifier()
Creates a new temperature modifier instance from the supplier registered to the given ID.
addModifier()
Adds the given modifier to the given entity's specified trait. This method provides a basic way of doing this through JavaScript. For more advanced versions, use the Java-based methods instead.
getTrait()
Returns the Trait enum constant associated with the given ID. This might be necessary when using Java methods in Cold Sweat.
getColdInsulation()
Returns the sum of all cold insulation from the given entity's armor, curios, etc.
getHeatInsulation()
Returns the sum of all heat insulation from the given entity's armor, curios, etc.
getBlockTemperature()
Returns the raw temperature of the given BlockContainer object (which is what KubeJS refers to as a "block")
getBiomeTemperature()
Returns the biome temperature at the given location, taking into account time of day.