BiomeClimate 5.46.0
Rain flag and base temperature of the vanilla biomes (BedrockData biome_definitions.json "rain" and "temperature"), which decide whether it rains, snows or stays dry in a biome.
Constants
COOLING_PER_BLOCK
public const COOLING_PER_BLOCK = 0.05 / 40Temperature lost per block above BiomeClimate::COOLING_START_Y (vanilla 0.05 / 40, without the noise).
COOLING_START_Y
public const COOLING_START_Y = 80Above this height the temperature drops (vanilla: sea level + 17).
SNOW_TEMPERATURE
public const SNOW_TEMPERATURE = 0.15Below this temperature it snows instead of raining (vanilla).
Methods
getBaseTemperature()
public static function getBaseTemperature(int $biomeId) : floatgetPrecipitation()
public static function getPrecipitation(int $biomeId, int $y) : \pocketmine\world\weather\PrecipitationWhat falls at the given height of the biome when it rains.
getTemperatureAt()
public static function getTemperatureAt(int $biomeId, int $y) : floatTemperature of the biome at the given height: it gets colder above y=80, so high mountains get snow.
hasPrecipitation()
public static function hasPrecipitation(int $biomeId) : boolWhether it ever rains (or snows) in the biome. False for deserts, savannas, badlands, the Nether and the End.
isCold()
public static function isCold(int $biomeId, int $y) : boolWhether water freezes and snow settles at the given height of the biome (cold enough to snow).
