Skip to content

PieceWeight 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\fortress\PieceWeight · source

NetherFortressPieces.PieceWeight. Vanilla keeps them in static arrays and resets placeCount in the StartPiece constructor; here every start creates its own (see StartPiece), so concurrent starts cannot interfere.

Properties ​

$allowInRow ​

php
public readonly bool $allowInRow

$maxPlaceCount ​

php
public readonly int $maxPlaceCount

$pieceClass ​

php
public readonly string $pieceClass

$placeCount ​

php
public int $placeCount

$weight ​

php
public readonly int $weight

Methods ​

__construct() ​

php
public function __construct(string $pieceClass, int $weight, int $maxPlaceCount, bool $allowInRow = false)

bridgePieces() ​

php
public static function bridgePieces() : array

NetherFortressPieces.BRIDGE_PIECE_WEIGHTS

castlePieces() ​

php
public static function castlePieces() : array

NetherFortressPieces.CASTLE_PIECE_WEIGHTS

doPlace() ​

php
public function doPlace() : bool

PieceWeight.doPlace()

isValid() ​

php
public function isValid() : bool

PieceWeight.isValid()

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