MineShaftStairs 5.46.0
Extends MineShaftPiece
Vanilla's MineshaftPieces.MineShaftStairs: a corridor going 5 blocks down.
Methods
__construct()
php
public function __construct(int $genDepth, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $direction, bool $mesa)addChildren()
php
public function addChildren(\pocketmine\world\generator\vanilla\structure\piece\mineshaft\MineShaftRoom $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random) : voidfindStairs()
php
public static function findStairs(\pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, int $footX, int $footY, int $footZ, int $direction) : ?\pocketmine\world\generator\vanilla\structure\BoundingBoxMineShaftStairs.findStairs() (vanilla takes a random it does not use)
postProcess()
php
public function postProcess(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $chunkBox, int $chunkX, int $chunkZ, array $pivot) : void