Skip to content

MineShaftPiece 5.46.0 ​

abstract class · pocketmine\world\generator\vanilla\structure\piece\mineshaft\MineShaftPiece · source

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 ​

php
public readonly bool $mesa

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\structure\BoundingBox $box, int $genDepth, bool $mesa)

addChildren() ​

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

StructurePiece.addChildren()

canBeReplaced() protected ​

php
protected function canBeReplaced(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, int $x, int $y, int $z, \pocketmine\world\generator\vanilla\structure\BoundingBox $box) : bool

MineShaftPiece.canBeReplaced(): never replaces the wood, planks, fences and chains of the mineshaft.

canHangChainBelow() protected ​

php
protected static function canHangChainBelow(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, int $state) : bool

MineShaftCorridor.canHangChainBelow(): Block.canSupportCenter(DOWN) (approximated: sturdy bottom face, or a fence or wall post) and not a FallingBlock.

fenceName() protected ​

php
protected function fenceName() : string

MineshaftStructure.Type.getFenceState()

isInInvalidLocation() protected ​

php
protected function isInInvalidLocation(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c, \pocketmine\world\generator\vanilla\structure\BoundingBox $box) : bool

MineShaftPiece.isInInvalidLocation(): in a blocking biome, or liquid on the faces of the piece box (grown by one, clipped to the chunk box).

isSupportingBox() protected ​

php
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) : bool

MineShaftPiece.isSupportingBox(): whether there is no air above the given row.

planksName() protected ​

php
protected function planksName() : string

MineshaftStructure.Type.getPlanksState()

setPlanksBlock() protected ​

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

MineShaftPiece.setPlanksBlock(): planks under the floor where it is not sturdy (bridging caves), only below the ocean floor heightmap.

woodName() protected ​

php
protected function woodName() : string

MineshaftStructure.Type.getWoodState()

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