StrongholdPiece 5.46.0
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 = 2DOOR_IRON
php
public const DOOR_IRON = 3DOOR_OPENING
php
public const DOOR_OPENING = 0DOOR_WOOD
php
public const DOOR_WOOD = 1Properties
$entryDoor protected
php
protected int $entryDoorMethods
__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) : voidStructurePiece.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) : voidgenerateBox() 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) : voidStrongholdPiece.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\StrongholdPieceStrongholdPiece.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\StrongholdPieceStrongholdPiece.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\StrongholdPieceStrongholdPiece.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) : voidgenerateBox() with the smooth stone selector.
isOkBox() protected
php
protected static function isOkBox(\pocketmine\world\generator\vanilla\structure\BoundingBox $box) : boolStrongholdPiece.isOkBox()
randomSmallDoor() protected
php
protected static function randomSmallDoor(\pocketmine\world\generator\vanilla\random\LegacyRandom $random) : intStrongholdPiece.randomSmallDoor()
selector() protected
php
protected static function selector() : \pocketmine\world\generator\vanilla\structure\piece\stronghold\SmoothStoneSelectorStrongholdPieces.SMOOTH_STONE_SELECTOR (stateless, shared).
