MineshaftPieces 5.46.0
Vanilla's MineshaftPieces: the random growth of a mineshaft from its start room.
Constants
MAGIC_START_Y
php
public const MAGIC_START_Y = 50MineshaftPieces.MAGIC_START_Y
MAX_DEPTH
php
public const MAX_DEPTH = 8MineshaftPieces.MAX_DEPTH
Methods
generateAndAddPiece()
php
public static function generateAndAddPiece(\pocketmine\world\generator\vanilla\structure\piece\mineshaft\MineShaftRoom $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $footX, int $footY, int $footZ, int $direction, int $depth) : ?\pocketmine\world\generator\vanilla\structure\piece\mine …MineshaftPieces.generateAndAddPiece(): adds a random piece at the given foot (unless too deep or more than 80 blocks from the start room) and grows its children.
