Skip to content

NetherBridgePiece 5.46.0 ​

abstract class · pocketmine\world\generator\vanilla\structure\piece\fortress\NetherBridgePiece · source

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

StructurePiece.addChildren()

bricks() protected ​

php
protected function bricks(\pocketmine\world\generator\vanilla\structure\StructurePlaceContext $c) : int

The 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\NetherBridgePiece

The 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\NetherBridgePiece

generateChildForward()

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

generateChildLeft()

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

generateChildRight()

isOkBox() protected ​

php
protected static function isOkBox(\pocketmine\world\generator\vanilla\structure\BoundingBox $box) : bool

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