StrongholdPieceWeight 5.46.0
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 $weightMethods
__construct()
php
public function __construct(string $pieceClass, int $weight, int $maxPlaceCount, int $minDepth = -1)doPlace()
php
public function doPlace(int $depth) : boolisValid()
php
public function isValid() : bool