Skip to content

StrongholdPieceWeight 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\stronghold\StrongholdPieceWeight · source

StrongholdPieces.PieceWeight (and its anonymous subclasses for the library and the portal room, which need a minimum depth). One instance per generation: placeCount is generation state.

Properties ​

$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, int $minDepth = -1)

doPlace() ​

php
public function doPlace(int $depth) : bool

isValid() ​

php
public function isValid() : bool

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