StructureEnvironment 5.46.0
The world a generator's structures are computed for: seed, height range, terrain sampler and biomes. One per generator (dimension) instance.
Properties
$blocks
php
public readonly \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks$dimension
php
public readonly string $dimension$height
php
public readonly int $height$minY
php
public readonly int $minY$registry
php
public readonly \pocketmine\world\generator\vanilla\structure\StructureRegistry $registry$seaLevel
php
public readonly int $seaLevel$seed
php
public readonly int $seed$templates
php
public readonly \pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates$terrain
php
public readonly \pocketmine\world\generator\vanilla\structure\TerrainSampler $terrainMethods
__construct()
php
public function __construct(int $seed, int $minY, int $height, int $seaLevel, string $dimension, \pocketmine\world\generator\vanilla\structure\TerrainSampler $terrain, \Closure $biomeAt, \pocketmine\world\generator\vanilla\structure\StructureRegistry $registry, \pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, \pocketmine\world\generator\vanilla\feature\block\Ja …getBiome()
php
public function getBiome(int $x, int $y, int $z) : stringJava biome name of the noise biome at a block position.
getMaxY()
php
public function getMaxY() : intHighest block y (inclusive).
isColdEnoughToSnow()
php
public function isColdEnoughToSnow(int $x, int $y, int $z) : boolBiome.coldEnoughToSnow() for the biome at a position (false when unknown).
setColdEnoughToSnow()
php
public function setColdEnoughToSnow(\Closure $check) : void