Skip to content

TheEnd 5.46.0 ​

class · pocketmine\world\generator\end\TheEnd · source

Extends Generator

Simplified End: the main island of end stone around 0,0 with the ring of ten obsidian pillars. There are no outer islands, chorus plants, End cities or exit portal (the exit portal only matters after the dragon is killed).

Constants ​

ISLAND_RADIUS ​

php
public const ISLAND_RADIUS = 76

Average radius of the main island, in blocks.

ISLAND_SURFACE_Y ​

php
public const ISLAND_SURFACE_Y = 62

Y of the island surface at its centre.

PILLAR_COUNT ​

php
public const PILLAR_COUNT = 10

PILLAR_RING_RADIUS ​

php
public const PILLAR_RING_RADIUS = 42

Methods ​

__construct() ​

php
public function __construct(int $seed, string $preset)

computePillars() ​

php
public static function computePillars(int $seed) : array

Vanilla places ten pillars on a circle of radius 42; their heights are 76, 79, ... 103 in a seed-dependent order and the taller pillars are wider.

generateChunk() ​

php
public function generateChunk(\pocketmine\world\ChunkManager $world, int $chunkX, int $chunkZ) : void

getIslandColumn() ​

php
public function getIslandColumn(int $x, int $z) : ?array

Returns the [bottom, top] Y of the island at the given column, or null if the column is outside the island.

populateChunk() ​

php
public function populateChunk(\pocketmine\world\ChunkManager $world, int $chunkX, int $chunkZ) : void

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