MineShaftPiece 5.46.0
Extends OrientedPiece
Vanilla's MineshaftPieces.MineShaftPiece: the common parts of the mineshaft pieces (wood type, liquid and biome checks, planks bridging over air).
Properties
$mesa
public readonly bool $mesaMethods
__construct()
public function __construct(\pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $genDepth, bool $mesa)addChildren()
abstract 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) : voidStructurePiece.addChildren()
canBeReplaced() protected
protected function canBeReplaced(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, int $x, int $y, int $z, \pocketmine\world\generator\vanilla\structure\BoundingBox $box) : boolMineShaftPiece.canBeReplaced(): never replaces the wood, planks, fences and chains of the mineshaft.
canHangChainBelow() protected
protected static function canHangChainBelow(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, int $state) : boolMineShaftCorridor.canHangChainBelow(): Block.canSupportCenter(DOWN) (approximated: sturdy bottom face, or a fence or wall post) and not a FallingBlock.
fenceName() protected
protected function fenceName() : stringMineshaftStructure.Type.getFenceState()
isInInvalidLocation() protected
protected function isInInvalidLocation(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box) : boolMineShaftPiece.isInInvalidLocation(): in a blocking biome, or liquid on the faces of the piece box (grown by one, clipped to the chunk box).
isSupportingBox() protected
protected function isSupportingBox(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $x0, int $x1, int $y1, int $z0) : boolMineShaftPiece.isSupportingBox(): whether there is no air above the given row.
planksName() protected
protected function planksName() : stringMineshaftStructure.Type.getPlanksState()
setPlanksBlock() protected
protected function setPlanksBlock(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $planks, int $x, int $y, int $z) : voidMineShaftPiece.setPlanksBlock(): planks under the floor where it is not sturdy (bridging caves), only below the ocean floor heightmap.
woodName() protected
protected function woodName() : stringMineshaftStructure.Type.getWoodState()
