Skip to content

WorldData ​

interface · pocketmine\world\format\io\WorldData · source

Methods ​

getDifficulty() ​

php
public function getDifficulty() : int

Returns the world difficulty. This will be one of the World constants.

getGenerator() ​

php
public function getGenerator() : string

Returns the generator name

getGeneratorOptions() ​

php
public function getGeneratorOptions() : string

getLightningLevel() ​

php
public function getLightningLevel() : float

getLightningTime() ​

php
public function getLightningTime() : int

Returns the time in ticks to the next lightning level change.

getName() ​

php
public function getName() : string

getRainLevel() ​

php
public function getRainLevel() : float

getRainTime() ​

php
public function getRainTime() : int

Returns the time in ticks to the next rain level change.

getSeed() ​

php
public function getSeed() : int

getSpawn() ​

php
public function getSpawn() : \pocketmine\math\Vector3

getTime() ​

php
public function getTime() : int

save() ​

php
public function save() : void

Saves information about the world state, such as weather, time, etc.

setDifficulty() ​

php
public function setDifficulty(int $difficulty) : void

Sets the world difficulty.

setLightningLevel() ​

php
public function setLightningLevel(float $level) : void

setLightningTime() ​

php
public function setLightningTime(int $ticks) : void

Sets the time in ticks to the next lightning level change.

setName() ​

php
public function setName(string $value) : void

setRainLevel() ​

php
public function setRainLevel(float $level) : void

setRainTime() ​

php
public function setRainTime(int $ticks) : void

Sets the time in ticks to the next rain level change.

setSpawn() ​

php
public function setSpawn(\pocketmine\math\Vector3 $pos) : void

setTime() ​

php
public function setTime(int $value) : void

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