Skip to content

Dimension 5.46.0 ​

enum · pocketmine\world\dimension\Dimension · source

The vanilla dimension a world is presented as to the client. It decides the sky, fog and light the client renders, the vertical range of chunks sent and the build height of the world.

Cases ​

END ​

php
case END

NETHER ​

php
case NETHER

OVERWORLD ​

php
case OVERWORLD

Methods ​

fromNetworkId() ​

php
public static function fromNetworkId(int $id) : ?self

fromString() ​

php
public static function fromString(string $name) : ?self

getCoordinateScale() ​

php
public function getCoordinateScale() : int

Horizontal coordinate scale relative to the Overworld (1 block in the Nether = 8 blocks in the Overworld).

getDefaultGeneratorName() ​

php
public function getDefaultGeneratorName() : string

Name of the built-in generator used to create a new world of this dimension.

getMaxY() ​

php
public function getMaxY() : int

Y coordinate above the highest block that may be placed in this dimension (exclusive), same convention as World::Y_MAX.

getMinY() ​

php
public function getMinY() : int

Lowest Y coordinate blocks may be placed at in this dimension (inclusive).

getNetworkId() ​

php
public function getNetworkId() : int

getWorldNameSuffix() ​

php
public function getWorldNameSuffix() : string

Suffix added to the name of an Overworld world to name its linked world of this dimension, like the vanilla Java server ("world_nether", "world_the_end").

hasSkyLight() ​

php
public function hasSkyLight() : bool

Whether the dimension receives light from the sky. The Nether and the End don't: their light comes only from blocks.

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