StructureDefinition 5.46.0
A structure of the worldgen/structure data: its type, the biomes it may start in, its decoration step and terrain adaptation.
Constants
ADAPTATION_BEARD_BOX
php
public const ADAPTATION_BEARD_BOX = "beard_box"ADAPTATION_BEARD_THIN
php
public const ADAPTATION_BEARD_THIN = "beard_thin"ADAPTATION_BURY
php
public const ADAPTATION_BURY = "bury"ADAPTATION_ENCAPSULATE
php
public const ADAPTATION_ENCAPSULATE = "encapsulate"ADAPTATION_NONE
php
public const ADAPTATION_NONE = "none"STEPS
php
public const STEPS = ["raw_generation", "lakes", "local_modifications", "underground_structures", "surface_structures", "strongholds", "underground_ores", "underground_decoration", "fluid_springs", "vegetal_decoration", "top_layer_modification"]GenerationStep.Decoration names, in order.
Properties
$biomes
php
public readonly array $biomes$id
php
public readonly string $id$json
php
public readonly array $json$step
php
public readonly int $step$terrainAdaptation
php
public readonly string $terrainAdaptation$type
php
public readonly \pocketmine\world\generator\vanilla\structure\StructureType $typeMethods
__construct()
php
public function __construct(string $id, \pocketmine\world\generator\vanilla\structure\StructureType $type, array $biomes, int $step, string $terrainAdaptation, array $json)isValidBiome()
php
public function isValidBiome(string $biome) : bool