StructureRegistry 5.46.0
The structures, structure sets and template pools of a data cache (worldgen/structure, structure_set, template_pool), parsed once per thread and data directory (see shared()). Structure sets are listed in vanilla's registry order (sorted by id, as the data pack loader does).
Constants
TYPES
php
public const TYPES = ["jigsaw", "swamp_hut", "igloo", "desert_pyramid", "jungle_temple", "shipwreck", "ocean_ruin", "ruined_portal", "buried_treasure"]Structure types implemented, by "type" of the structure data.
Properties
$blocks
php
public readonly \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks$data
php
public readonly \pocketmine\world\generator\vanilla\WorldgenData $data$processors
php
public readonly \pocketmine\world\generator\vanilla\structure\processor\Processors $processorsMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\WorldgenData $data, \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, ?\Closure $logger = null)getPool()
php
public function getPool(string $id) : ?\pocketmine\world\generator\vanilla\structure\jigsaw\TemplatePoolgetSets()
php
public function getSets() : arraygetStructure()
php
public function getStructure(string $id) : ?\pocketmine\world\generator\vanilla\structure\StructureDefinitiongetStructureSteps()
php
public function getStructureSteps() : arrayThe decoration step of every structure of the data, implemented or not, in registry order.
getStructures()
php
public function getStructures() : arraygetUnsupported()
php
public function getUnsupported() : arrayStructures of the data that have no implementation yet: id => type.
resolveBiomes()
php
public function resolveBiomes(mixed $json, int $depth = 0) : arrayBiome names of a biome holder set: "#tag", an id or a list of ids.
shared()
php
public static function shared(\pocketmine\world\generator\vanilla\WorldgenData $data, \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, ?\Closure $logger = null) : selfwarn()
php
public function warn(string $key, string $message) : void