Skip to content

StructureProcessor 5.46.0 ​

abstract class · pocketmine\world\generator\vanilla\structure\processor\StructureProcessor · source

Vanilla's StructureProcessor. Block infos are arrays [x, y, z, Java state, block entity data or null]: the original info is template-relative, the current one is in the world.

Methods ​

finalize() ​

php
public function finalize(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, array $origin, array $pivot, array $originals, array $processed, \pocketmine\world\generator\vanilla\structure\template\PlaceSettings $settings) : array

needsAllBlocks() ​

php
public function needsAllBlocks() : bool

Whether the processor needs every block of the template (finalizeProcessing() over the whole list), which prevents clipping the template to the chunk before processing.

process() ​

php
abstract public function process(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, array $origin, array $pivot, array $original, array $current, \pocketmine\world\generator\vanilla\structure\template\PlaceSettings $settings) : ?array

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