Skip to content

MineShaftStairs 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\mineshaft\MineShaftStairs · source

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) : void

findStairs() ​

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

MineShaftStairs.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

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