SinglePoolElement 5.46.0
Extends PoolElement
single_pool_element and legacy_single_pool_element: a structure template with a processor list. Legacy elements do not place the template's air blocks.
Properties
$legacy
php
public readonly bool $legacy$location
php
public readonly string $locationMethods
__construct()
php
public function __construct(string $location, array $processors, int $projection, bool $legacy, ?bool $liquidOverride = null)describe()
php
public function describe() : stringgetBoundingBox()
php
public function getBoundingBox(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, int $x, int $y, int $z, int $rotation) : \pocketmine\world\generator\vanilla\structure\BoundingBoxgetJigsaws()
php
public function getJigsaws(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, int $x, int $y, int $z, int $rotation) : arraygetLiquidOverride()
php
public function getLiquidOverride() : ?boolplace()
php
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) : bool