Skip to content

BiomeClimate 5.46.0 ​

final class · pocketmine\world\generator\vanilla\feature\BiomeClimate · source

Biome temperature, freezing and snowing checks of Java 26.3 (Biome.getTemperature(), shouldFreeze(), shouldSnow()), in float32 like Java. During worldgen the block light is 0.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\feature\FeatureRegistry $registry)

shouldFreeze() ​

php
public function shouldFreeze(\pocketmine\world\generator\vanilla\feature\FeatureContext $c, int $x, int $y, int $z, bool $checkNeighbors = true, ?int $biome = null) : bool

shouldSnow() ​

php
public function shouldSnow(\pocketmine\world\generator\vanilla\feature\FeatureContext $c, int $x, int $y, int $z, ?int $biome = null) : bool

temperature() ​

php
public function temperature(int $biome, int $x, int $y, int $z, int $seaLevel) : float

warmEnoughToRain() ​

php
public function warmEnoughToRain(int $biome, int $x, int $y, int $z, int $seaLevel) : bool

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.