Skip to content

PlaceSettings 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\template\PlaceSettings · source

Vanilla's StructurePlaceSettings: transform, clipping box, processors and options of a template placement.

Properties ​

$applyWaterlogging ​

php
public bool $applyWaterlogging

LiquidSettings.APPLY_WATERLOGGING (default) or IGNORE_WATERLOGGING

$box ​

php
public ?\pocketmine\world\generator\vanilla\structure\BoundingBox $box

$ignoreEntities ​

php
public bool $ignoreEntities

$knownShape ​

php
public bool $knownShape

StructurePlaceSettings.knownShape: no shape updates after placement (jigsaw elements)

$mirror ​

php
public int $mirror

$pivotX ​

php
public int $pivotX

$pivotZ ​

php
public int $pivotZ

$processors ​

php
public array $processors

$random ​

php
public \pocketmine\world\generator\vanilla\random\LegacyRandom|\pocketmine\world\generator\vanilla\feature\FeatureRandom|null $random

A fixed random for the processors; null: a random seeded from each block position (vanilla's default).

$rotation ​

php
public int $rotation

Methods ​

addProcessor() ​

php
public function addProcessor(\pocketmine\world\generator\vanilla\structure\processor\StructureProcessor $processor) : self

getRandom() ​

php
public function getRandom(int $x, int $y, int $z) : \pocketmine\world\generator\vanilla\random\LegacyRandom|\pocketmine\world\generator\vanilla\feature\FeatureRandom

StructurePlaceSettings.getRandom(pos)

setBox() ​

php
public function setBox(?\pocketmine\world\generator\vanilla\structure\BoundingBox $box) : self

setMirror() ​

php
public function setMirror(int $mirror) : self

setPivot() ​

php
public function setPivot(int $x, int $z) : self

setRotation() ​

php
public function setRotation(int $rotation) : self

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