Skip to content

JavaWorldData ​

class · pocketmine\world\format\io\data\JavaWorldData · source

Extends BaseNbtWorldData
Implements WeatherCycleWorldData, MobSpawningWorldData

Methods ​

fix() protected ​

php
protected function fix() : void

generate() ​

php
public static function generate(string $path, string $name, \pocketmine\world\WorldCreationOptions $options, int $version = 19133) : void

getDifficulty() ​

php
public function getDifficulty() : int

getLightningLevel() ​

php
public function getLightningLevel() : float

getLightningTime() ​

php
public function getLightningTime() : int

getRainLevel() ​

php
public function getRainLevel() : float

getRainTime() ​

php
public function getRainTime() : int

isMobSpawningEnabled() 5.46.0 ​

php
public function isMobSpawningEnabled() : bool

isWeatherCycleEnabled() 5.46.0 ​

php
public function isWeatherCycleEnabled() : bool

load() protected ​

php
protected function load() : \pocketmine\nbt\tag\CompoundTag

save() ​

php
public function save() : void

setDifficulty() ​

php
public function setDifficulty(int $difficulty) : void

setLightningLevel() ​

php
public function setLightningLevel(float $level) : void

setLightningTime() ​

php
public function setLightningTime(int $ticks) : void

setMobSpawningEnabled() 5.46.0 ​

php
public function setMobSpawningEnabled(bool $enabled) : void

setRainLevel() ​

php
public function setRainLevel(float $level) : void

setRainTime() ​

php
public function setRainTime(int $ticks) : void

setWeatherCycleEnabled() 5.46.0 ​

php
public function setWeatherCycleEnabled(bool $enabled) : void

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