StructurePiece 5.46.0
A piece of a structure start (vanilla's StructurePiece): a bounding box and the code that places the piece's blocks inside the box of the chunk being populated.
Properties
$box
php
public \pocketmine\world\generator\vanilla\structure\BoundingBox $box$genDepth
php
public int $genDepthMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $genDepth = 0)getGroundLevelDelta()
php
public function getGroundLevelDelta() : intHeight above the piece's minimum y of the ground the piece stands on (jigsaw pieces' ground level delta).
isRigid()
php
public function isRigid() : boolWhether the terrain is adapted to this piece (beardifier): jigsaw pieces with terrain matching projection are not.
move()
php
public function move(int $dx, int $dy, int $dz) : voidpostProcess()
php
abstract public function postProcess(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $chunkBox, int $chunkX, int $chunkZ, array $pivot) : voidStructurePiece.postProcess(): places the part of the piece inside the chunk box.
