WorldData
Methods
getDifficulty()
php
public function getDifficulty() : intReturns the world difficulty. This will be one of the World constants.
getGenerator()
php
public function getGenerator() : stringReturns the generator name
getGeneratorOptions()
php
public function getGeneratorOptions() : stringgetLightningLevel()
php
public function getLightningLevel() : floatgetLightningTime()
php
public function getLightningTime() : intReturns the time in ticks to the next lightning level change.
getName()
php
public function getName() : stringgetRainLevel()
php
public function getRainLevel() : floatgetRainTime()
php
public function getRainTime() : intReturns the time in ticks to the next rain level change.
getSeed()
php
public function getSeed() : intgetSpawn()
php
public function getSpawn() : \pocketmine\math\Vector3getTime()
php
public function getTime() : intsave()
php
public function save() : voidSaves information about the world state, such as weather, time, etc.
setDifficulty()
php
public function setDifficulty(int $difficulty) : voidSets the world difficulty.
setLightningLevel()
php
public function setLightningLevel(float $level) : voidsetLightningTime()
php
public function setLightningTime(int $ticks) : voidSets the time in ticks to the next lightning level change.
setName()
php
public function setName(string $value) : voidsetRainLevel()
php
public function setRainLevel(float $level) : voidsetRainTime()
php
public function setRainTime(int $ticks) : voidSets the time in ticks to the next rain level change.
setSpawn()
php
public function setSpawn(\pocketmine\math\Vector3 $pos) : voidsetTime()
php
public function setTime(int $value) : void