StructureStart 5.46.0
A generated structure (vanilla's StructureStart): the structure, its start chunk and its pieces. Starts are pure functions of the seed and the start chunk, so every generator worker computes the same start independently.
Properties
$chunkX
php
public readonly int $chunkX$chunkZ
php
public readonly int $chunkZ$pieces
php
public readonly array $pieces$structure
php
public readonly \pocketmine\world\generator\vanilla\structure\StructureDefinition $structureMethods
__construct()
php
public function __construct(\pocketmine\world\generator\vanilla\structure\StructureDefinition $structure, int $chunkX, int $chunkZ, array $pieces)getBoundingBox()
php
public function getBoundingBox() : \pocketmine\world\generator\vanilla\structure\BoundingBoxStructureStart.getBoundingBox(): the box of all pieces, inflated by 12 blocks when the structure adapts the terrain (Structure.adjustBoundingBox()).
getPiecesBoundingBox()
php
public function getPiecesBoundingBox() : \pocketmine\world\generator\vanilla\structure\BoundingBoxThe box of the pieces only (without the terrain adaptation margin).
isValid()
php
public function isValid() : boolplaceInChunk()
php
public function placeInChunk(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $chunkBox, int $chunkX, int $chunkZ) : voidStructureStart.placeInChunk()
