StructureProcessor 5.46.0
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) : arrayneedsAllBlocks()
php
public function needsAllBlocks() : boolWhether 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