JavaWorldData
Extends BaseNbtWorldData
Implements WeatherCycleWorldData, MobSpawningWorldData
Methods
fix() protected
php
protected function fix() : voidgenerate()
php
public static function generate(string $path, string $name, \pocketmine\world\WorldCreationOptions $options, int $version = 19133) : voidgetDifficulty()
php
public function getDifficulty() : intgetLightningLevel()
php
public function getLightningLevel() : floatgetLightningTime()
php
public function getLightningTime() : intgetRainLevel()
php
public function getRainLevel() : floatgetRainTime()
php
public function getRainTime() : intisMobSpawningEnabled() 5.46.0
php
public function isMobSpawningEnabled() : boolisWeatherCycleEnabled() 5.46.0
php
public function isWeatherCycleEnabled() : boolload() protected
php
protected function load() : \pocketmine\nbt\tag\CompoundTagsave()
php
public function save() : voidsetDifficulty()
php
public function setDifficulty(int $difficulty) : voidsetLightningLevel()
php
public function setLightningLevel(float $level) : voidsetLightningTime()
php
public function setLightningTime(int $ticks) : voidsetMobSpawningEnabled() 5.46.0
php
public function setMobSpawningEnabled(bool $enabled) : voidsetRainLevel()
php
public function setRainLevel(float $level) : voidsetRainTime()
php
public function setRainTime(int $ticks) : voidsetWeatherCycleEnabled() 5.46.0
php
public function setWeatherCycleEnabled(bool $enabled) : void