StrongholdPieces 5.46.0
The piece selection of vanilla's StrongholdPieces. Vanilla keeps the piece weights, the imposed piece and the total weight in static fields reset by resetPieces(); here they are the state of one generation (one instance per attempt, reachable from the start piece), so concurrent generations cannot interfere.
Properties
$imposedPiece
php
public ?string $imposedPieceMethods
__construct()
php
public function __construct()StrongholdPieces.resetPieces() (STRONGHOLD_PIECE_WEIGHTS, fresh place counts)
generateAndAddPiece()
php
public function generateAndAddPiece(\pocketmine\world\generator\vanilla\structure\piece\stronghold\StartPiece $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $x, int $y, int $z, int $direction, int $depth) : ?\pocketmine\world\generator\vanilla\structure\piece\stronghold\StrongholdPiec …StrongholdPieces.generateAndAddPiece()
