NetherBridgePiece 5.46.0
Extends OrientedPiece
A piece of a nether fortress (vanilla's NetherFortressPieces.NetherBridgePiece): child generation and the weighted choice of the next piece.
Methods
__construct()
php
public function __construct(int $genDepth, \pocketmine\world\generator\vanilla\structure\BoundingBox $box, ?int $direction)addChildren()
php
public function addChildren(\pocketmine\world\generator\vanilla\structure\piece\fortress\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random) : voidStructurePiece.addChildren()
bricks() protected
php
protected function bricks(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c) : intThe nether bricks state, used by every piece.
createPiece()
php
abstract public static function createPiece(\pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $footX, int $footY, int $footZ, int $direction, int $genDepth) : ?\pocketmine\world\generator\vanilla\structure\piece\fortress\NetherBridgePieceThe vanilla createPiece() of each piece class: the piece at the given foot, or null if its box is too low or collides with another piece. The random is only used by the pieces whose vanilla factory takes it.
generateChildForward() protected
php
protected function generateChildForward(\pocketmine\world\generator\vanilla\structure\piece\fortress\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $xOff, int $yOff, bool $isCastle) : ?\pocketmine\world\generator\vanilla\structure\piece\fortress\NetherBridgePiecegenerateChildForward()
generateChildLeft() protected
php
protected function generateChildLeft(\pocketmine\world\generator\vanilla\structure\piece\fortress\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $yOff, int $zOff, bool $isCastle) : ?\pocketmine\world\generator\vanilla\structure\piece\fortress\NetherBridgePiecegenerateChildLeft()
generateChildRight() protected
php
protected function generateChildRight(\pocketmine\world\generator\vanilla\structure\piece\fortress\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $yOff, int $zOff, bool $isCastle) : ?\pocketmine\world\generator\vanilla\structure\piece\fortress\NetherBridgePiecegenerateChildRight()
isOkBox() protected
php
protected static function isOkBox(\pocketmine\world\generator\vanilla\structure\BoundingBox $box) : bool