Skip to content

StructureStart 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\StructureStart · source

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 $structure

Methods ​

__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\BoundingBox

StructureStart.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\BoundingBox

The box of the pieces only (without the terrain adaptation margin).

isValid() ​

php
public function isValid() : bool

placeInChunk() ​

php
public function placeInChunk(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $chunkBox, int $chunkX, int $chunkZ) : void

StructureStart.placeInChunk()

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