Skip to content

TheEndBiomeSource 5.46.0 ​

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

The End's biome source (vanilla TheEndBiomeSource): the_end within 64 chunks of 0,0, elsewhere a biome chosen by the height of the End islands density function at the centre of the chunk (highlands, midlands, small islands or barrens). The biome only depends on the chunk column.

Constants ​

END_BARRENS ​

php
public const END_BARRENS = 4

END_HIGHLANDS ​

php
public const END_HIGHLANDS = 1

END_MIDLANDS ​

php
public const END_MIDLANDS = 2

NAMES ​

php
public const NAMES = [self::THE_END => "minecraft:the_end", self::END_HIGHLANDS => "minecraft:end_highlands", self::END_MIDLANDS => "minecraft:end_midlands", self::SMALL_END_ISLANDS => "minecraft:small_end_islands", self::END_BARRENS => "minecraft:end_barrens"]

Biome names in index order.

SMALL_END_ISLANDS ​

php
public const SMALL_END_ISLANDS = 3

THE_END ​

php
public const THE_END = 0

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $islands)

fillChunk() ​

php
public function fillChunk(int $chunkX, int $chunkZ, int $quartsY) : array

Biome per quart cell of a chunk, in TerrainChunk::$biomes layout.

getChunkBiome() ​

php
public function getChunkBiome(int $chunkX, int $chunkZ, int $blockY = 0) : int

getNoiseBiome() ​

php
public function getNoiseBiome(int $quartX, int $quartY, int $quartZ) : int

Biome index (see NAMES) of a quart (4x4x4 cell) position.

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