FeatureRegistry 5.46.0
Feature data of a world: placed and configured features (parsed lazily from the vanilla data), the biome feature lists, and the global feature order per decoration step (vanilla's FeatureSorter.buildFeaturesPerStep()), which gives every feature the index that seeds its random.
Constants
STEPS
public const STEPS = 11Number of decoration steps (GenerationStep.Decoration).
Properties
$biomeIndex
public array $biomeIndex$biomeNames
public array $biomeNamesBiome names in vanilla's possible-biomes order of the dimension's biome source (overworld: first appearance in the parameter list).
$biomeStepIndexes
public array $biomeStepIndexesIndexes (into stepFeatures) of the features of each biome and step, sorted.
$blocks
public readonly \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks$data
public readonly \pocketmine\world\generator\vanilla\WorldgenData $data$stepFeatures
public array $stepFeaturesFeatures of each step in global order (FeatureSorter).
Methods
__construct()
public function __construct(\pocketmine\world\generator\vanilla\WorldgenData $data, \pocketmine\world\generator\vanilla\feature\block\JavaBlocks $blocks, ?\Closure $logger = null, ?array $possibleBiomes = null)biomeHasFeature()
public function biomeHasFeature(int $biome, string $id) : boolbiomeInSet()
public function biomeInSet(int $biome, mixed $set) : boolBiome holder set test (a biome id, a list of ids or a biome tag, which is not supported and never matches).
biomeInfoNoise()
public function biomeInfoNoise(float $x, float $z) : floatBiome.BIOME_INFO_NOISE.get(x, z): a float in vanilla 26.x.
biomeJson()
public function biomeJson(int $biome) : arrayclimate()
public function climate() : \pocketmine\world\generator\vanilla\feature\BiomeClimateconfiguredRef()
public function configuredRef(mixed $json) : \pocketmine\world\generator\vanilla\feature\FeatureA configured feature field: a registry id or an inline {"type": ..., ...}.
multiNoiseBiomes()
public static function multiNoiseBiomes(\pocketmine\world\generator\vanilla\WorldgenData $data, string $dimension) : arrayBiomes of a multi-noise biome source in its possible-biomes order: first appearance in the parameter list.
placed()
public function placed(string $id) : \pocketmine\world\generator\vanilla\feature\PlacedFeatureplacedRef()
public function placedRef(mixed $json) : \pocketmine\world\generator\vanilla\feature\PlacedFeatureA placed feature field: a registry id or an inline {"feature": ..., "placement": [...]}.
stateProvider()
public function stateProvider(mixed $json) : \ClosureBlock state provider field: a registry id (worldgen/block_state_provider), an inline provider {"type": ...} or a plain block state.
warn()
public function warn(string $key, string $message) : void