MineShaftCrossing 5.46.0
Extends MineShaftPiece
Vanilla's MineshaftPieces.MineShaftCrossing: a crossing of corridors (one or two floors) with four planks pillars. It has no orientation: its coordinates are world coordinates.
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) : voidfindCrossing()
php
public static function findCrossing(\pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $footX, int $footY, int $footZ, int $direction) : ?\pocketmine\world\generator\vanilla\structure\BoundingBoxMineShaftCrossing.findCrossing()
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