Skip to content

SinglePoolElement 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\jigsaw\SinglePoolElement · source

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

Methods ​

__construct() ​

php
public function __construct(string $location, array $processors, int $projection, bool $legacy, ?bool $liquidOverride = null)

describe() ​

php
public function describe() : string

getBoundingBox() ​

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

getJigsaws() ​

php
public function getJigsaws(\pocketmine\world\generator\vanilla\structure\template\StructureTemplates $templates, int $x, int $y, int $z, int $rotation) : array

getLiquidOverride() ​

php
public function getLiquidOverride() : ?bool

place() ​

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

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