Skip to content

StrongholdPiece 5.46.0 ​

abstract class · pocketmine\world\generator\vanilla\structure\piece\stronghold\StrongholdPiece · source

Extends OrientedPiece

Base of the stronghold pieces (vanilla's StrongholdPieces.StrongholdPiece): the small doors between pieces and the creation of the children behind them.

Constants ​

DOOR_GRATES ​

php
public const DOOR_GRATES = 2

DOOR_IRON ​

php
public const DOOR_IRON = 3

DOOR_OPENING ​

php
public const DOOR_OPENING = 0

DOOR_WOOD ​

php
public const DOOR_WOOD = 1

Properties ​

$entryDoor protected ​

php
protected int $entryDoor

Methods ​

__construct() ​

php
public function __construct(int $genDepth, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, ?int $direction)

addChildren() ​

php
public function addChildren(\pocketmine\world\generator\vanilla\structure\piece\stronghold\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random) : void

StructurePiece.addChildren(): creates the pieces behind this piece's doors (start time).

fill() protected ​

php
protected function fill(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $minX, int $minY, int $minZ, int $maxX, int $maxY, int $maxZ, int $state) : void

generateBox() with one state for the edges and the inside.

generateSmallDoor() protected ​

php
protected function generateSmallDoor(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $doorType, int $x, int $y, int $z) : void

StrongholdPiece.generateSmallDoor()

generateSmallDoorChildForward() protected ​

php
protected function generateSmallDoorChildForward(\pocketmine\world\generator\vanilla\structure\piece\stronghold\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $xOff, int $yOff) : ?\pocketmine\world\generator\vanilla\structure\piece\stronghold\StrongholdPiece

StrongholdPiece.generateSmallDoorChildForward()

generateSmallDoorChildLeft() protected ​

php
protected function generateSmallDoorChildLeft(\pocketmine\world\generator\vanilla\structure\piece\stronghold\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $yOff, int $zOff) : ?\pocketmine\world\generator\vanilla\structure\piece\stronghold\StrongholdPiece

StrongholdPiece.generateSmallDoorChildLeft()

generateSmallDoorChildRight() protected ​

php
protected function generateSmallDoorChildRight(\pocketmine\world\generator\vanilla\structure\piece\stronghold\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $yOff, int $zOff) : ?\pocketmine\world\generator\vanilla\structure\piece\stronghold\StrongholdPiece

StrongholdPiece.generateSmallDoorChildRight()

generateSmoothStoneBox() protected ​

php
protected function generateSmoothStoneBox(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $minX, int $minY, int $minZ, int $maxX, int $maxY, int $maxZ, bool $skipAir, \pocketmine\world\generator\vanilla\feature\FeatureRandom $random) : void

generateBox() with the smooth stone selector.

isOkBox() protected ​

php
protected static function isOkBox(\pocketmine\world\generator\vanilla\structure\BoundingBox $box) : bool

StrongholdPiece.isOkBox()

randomSmallDoor() protected ​

php
protected static function randomSmallDoor(\pocketmine\world\generator\vanilla\random\LegacyRandom $random) : int

StrongholdPiece.randomSmallDoor()

selector() protected ​

php
protected static function selector() : \pocketmine\world\generator\vanilla\structure\piece\stronghold\SmoothStoneSelector

StrongholdPieces.SMOOTH_STONE_SELECTOR (stateless, shared).

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