Skip to content

StructureEnvironment 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\StructureEnvironment · source

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 $terrain

Methods ​

__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) : string

Java biome name of the noise biome at a block position.

getMaxY() ​

php
public function getMaxY() : int

Highest block y (inclusive).

isColdEnoughToSnow() ​

php
public function isColdEnoughToSnow(int $x, int $y, int $z) : bool

Biome.coldEnoughToSnow() for the biome at a position (false when unknown).

setColdEnoughToSnow() ​

php
public function setColdEnoughToSnow(\Closure $check) : void

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