Skip to content

StructureRegistry 5.46.0 ​

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

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

Methods ​

__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\TemplatePool

getSets() ​

php
public function getSets() : array

getStructure() ​

php
public function getStructure(string $id) : ?\pocketmine\world\generator\vanilla\structure\StructureDefinition

getStructureSteps() ​

php
public function getStructureSteps() : array

The decoration step of every structure of the data, implemented or not, in registry order.

getStructures() ​

php
public function getStructures() : array

getUnsupported() ​

php
public function getUnsupported() : array

Structures of the data that have no implementation yet: id => type.

resolveBiomes() ​

php
public function resolveBiomes(mixed $json, int $depth = 0) : array

Biome 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) : self

warn() ​

php
public function warn(string $key, string $message) : void

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