Skip to content

FeatureBiomes 5.46.0 ​

final class · pocketmine\world\generator\vanilla\feature\FeatureBiomes · source

Java biome lookups during decoration (WorldGenRegion.getBiome -> BiomeManager): the fuzzy-zoomed biome of a block, from the biome cells stored in the 3x3 chunks of the decoration region. Chunks store Bedrock biome ids; they are mapped back to Java biomes, and the few Bedrock ids shared by several Java biomes (and cells outside the region, like vanilla's uncached noise biome) are resolved by sampling the climate.

Methods ​

__construct() ​

php
public function __construct(int $seed, int $minY, int $height, array $bedrockToJava, \Closure $sampleCell)

begin() ​

php
public function begin(int $centerChunkX, int $centerChunkZ, array $chunks) : void

cell() ​

php
public function cell(int $qx, int $qy, int $qz) : int

Java biome index of the cell at quart coordinates (y clamped to the world like ChunkAccess.getNoiseBiome()).

getBiome() ​

php
public function getBiome(int $x, int $y, int $z) : int

BiomeManager.getBiome(): Java biome index at a block.

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