Skip to content

BedrockWorldData ​

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

Extends BaseNbtWorldData
Implements WeatherCycleWorldData, MobSpawningWorldData

Constants ​

CURRENT_CLIENT_VERSION_TARGET ​

php
public const CURRENT_CLIENT_VERSION_TARGET = \pocketmine\data\bedrock\WorldDataVersions::LAST_OPENED_IN

CURRENT_STORAGE_NETWORK_VERSION ​

php
public const CURRENT_STORAGE_NETWORK_VERSION = \pocketmine\data\bedrock\WorldDataVersions::NETWORK

CURRENT_STORAGE_VERSION ​

php
public const CURRENT_STORAGE_VERSION = \pocketmine\data\bedrock\WorldDataVersions::STORAGE

GENERATOR_FLAT ​

php
public const GENERATOR_FLAT = 2

GENERATOR_INFINITE ​

php
public const GENERATOR_INFINITE = 1

GENERATOR_LIMITED ​

php
public const GENERATOR_LIMITED = 0

Methods ​

fix() protected ​

php
protected function fix() : void

generate() ​

php
public static function generate(string $path, string $name, \pocketmine\world\WorldCreationOptions $options) : 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.