Skip to content

PoolElementPiece 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\PoolElementPiece · source

Extends StructurePiece

A placed jigsaw element (vanilla's PoolElementStructurePiece).

Properties ​

$applyWaterlogging ​

php
public readonly bool $applyWaterlogging

$element ​

php
public readonly \pocketmine\world\generator\vanilla\structure\jigsaw\PoolElement $element

$junctions ​

php
public array $junctions

Junctions with neighbouring pieces: [x, groundY, z, deltaY, destination projection].

$rotation ​

php
public readonly int $rotation

$x ​

php
public int $x

$y ​

php
public int $y

$z ​

php
public int $z

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\structure\jigsaw\PoolElement $element, int $x, int $y, int $z, int $groundLevelDelta, int $rotation, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, bool $applyWaterlogging)

getGroundLevelDelta() ​

php
public function getGroundLevelDelta() : int

isRigid() ​

php
public function isRigid() : bool

move() ​

php
public function move(int $dx, int $dy, int $dz) : void

postProcess() ​

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

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