Skip to content

MineShaftCrossing 5.46.0 ​

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

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

findCrossing() ​

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

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

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