JigsawAssembler 5.46.0
Vanilla's JigsawPlacement.Placer: grows a jigsaw structure from its start piece, breadth-first by jigsaw placement priority, attaching pieces of the target pools (and their fallbacks) to free jigsaw blocks while they fit in the remaining space.
Properties
$pieces
php
public array $piecesMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\structure\StructureEnvironment $env, int $maxDepth, bool $useExpansionHack, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, array $pieces, array $aliases, bool $applyWaterlogging)initialSpace()
php
public static function initialSpace(\pocketmine\world\generator\vanilla\structure\StructureEnvironment $env, int $centerX, int $centerY, int $centerZ, int $maxDistance, int $padBottom, int $padTop, \pocketmine\world\generator\vanilla\structure\BoundingBox $startBox) : \pocketmine\world\generator\vanilla\structure\jigsaw\FreeSpaceThe free space of a jigsaw structure: the box of max_distance_from_center around the start (clamped to the world height minus the dimension padding) minus the start piece.
randomNamedJigsaw()
php
public static function randomNamedJigsaw(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, \pocketmine\world\generator\vanilla\structure\jigsaw\PoolElement $element, string $name, int $x, int $y, int $z, int $rotation, \pocketmine\world\generator\vanilla\random\LegacyRandom $random) : ?arrayJigsawPlacement.getRandomNamedJigsaw(): position of a random jigsaw block with the given name.
run()
php
public function run(\pocketmine\world\generator\vanilla\structure\piece\PoolElementPiece $start, \pocketmine\world\generator\vanilla\structure\jigsaw\FreeSpace $free) : void