PoolElement 5.46.0
An element of a template pool (vanilla's StructurePoolElement).
Constants
PROJECTION_RIGID
php
public const PROJECTION_RIGID = 0PROJECTION_TERRAIN_MATCHING
php
public const PROJECTION_TERRAIN_MATCHING = 1Properties
$projection
php
public readonly int $projectionMethods
__construct()
php
public function __construct(int $projection)describe()
php
abstract public function describe() : stringA short description for debugging.
getBoundingBox()
php
abstract public function getBoundingBox(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, int $x, int $y, int $z, int $rotation) : \pocketmine\world\generator\vanilla\structure\BoundingBoxgetGroundLevelDelta()
php
public function getGroundLevelDelta() : intgetJigsaws()
php
abstract public function getJigsaws(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, int $x, int $y, int $z, int $rotation) : arrayThe jigsaw blocks of the element placed at a position with a rotation, in template order.
getLiquidOverride()
php
public function getLiquidOverride() : ?boolThe element's own liquid settings, if it overrides the structure's (null: use the structure's).
getShuffledJigsaws()
php
public function getShuffledJigsaws(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, int $x, int $y, int $z, int $rotation, \pocketmine\world\generator\vanilla\random\LegacyRandom|\pocketmine\world\generator\vanilla\feature\FeatureRandom $random) : arraygetShuffledJigsawBlocks(): shuffled, then sorted by selection priority (stable, highest first).
isEmpty()
php
public function isEmpty() : boolWhether this is the empty element (EmptyPoolElement.INSTANCE).
place()
php
abstract public function place(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, int $x, int $y, int $z, array $pivot, int $rotation, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, bool $applyWaterlogging, bool $keepJigsaws) : boolPlaces the element (clipped to the box). $applyWaterlogging: the liquid settings (LiquidSettings).
