Skip to content

VanillaBiomeSource 5.46.0 ​

final class · pocketmine\world\generator\vanilla\biome\VanillaBiomeSource · source

The biomes of a vanilla-generated dimension computed straight from the climate noise, without generating chunks (what /locate biome searches). Gives the same biomes as the generator: the multi-noise biome tree for the Overworld and the Nether, the End islands source for the End.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\WorldgenData $data, int $seed, string $dimension = "overworld", ?string $kernelCacheDir = null)

getBiome() ​

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

Biome index at the given block position (sampled at its quart position, like the generator).

getBiomeNames() ​

php
public function getBiomeNames() : array

Biome names (Java Edition ids without namespace, e.g. "desert") by biome index.

getBiomesInColumn() ​

php
public function getBiomesInColumn(int $x, int $z, array $ys) : array

Biome indexes at several heights of one block column: the horizontal climate is sampled once.

getMaxY() ​

php
public function getMaxY() : int

getMinY() ​

php
public function getMinY() : int

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