Skip to content

StrongholdPieces 5.46.0 ​

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

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 $imposedPiece

Methods ​

__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()

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