|
PocketMine-MP 5.39.3 git-400eb2dddf91a9c112aa09f3b498ffc8c85e98ed
|
Inheritance diagram for pocketmine\world\format\io\data\BedrockWorldData:
Collaboration diagram for pocketmine\world\format\io\data\BedrockWorldData:Public Member Functions | |
| getCompoundTag () | |
| getDifficulty () | |
| getGenerator () | |
| getGeneratorOptions () | |
| getLightningLevel () | |
| getLightningTime () | |
| getName () | |
| getRainLevel () | |
| getRainTime () | |
| getSeed () | |
| getSpawn () | |
| getTime () | |
| save () | |
| setDifficulty (int $difficulty) | |
| setLightningLevel (float $level) | |
| setLightningTime (int $ticks) | |
| setName (string $value) | |
| setRainLevel (float $level) | |
| setRainTime (int $ticks) | |
| setSpawn (Vector3 $pos) | |
| setTime (int $value) | |
Static Public Member Functions | |
| static | generate (string $path, string $name, WorldCreationOptions $options) |
Public Attributes | |
| const | CURRENT_CLIENT_VERSION_TARGET = WorldDataVersions::LAST_OPENED_IN |
| const | CURRENT_STORAGE_NETWORK_VERSION = WorldDataVersions::NETWORK |
| const | CURRENT_STORAGE_VERSION = WorldDataVersions::STORAGE |
| const | GENERATOR_FLAT = 2 |
| const | GENERATOR_INFINITE = 1 |
| const | GENERATOR_LIMITED = 0 |
Protected Member Functions | |
| fix () | |
| load () | |
Static Protected Member Functions | |
| static | hackyFixForGeneratorClasspathInLevelDat (string $className) |
Protected Attributes | |
| CompoundTag | $compoundTag |
| const | TAG_GENERATOR_NAME = "generatorName" |
| const | TAG_GENERATOR_OPTIONS = "generatorOptions" |
| const | TAG_LEVEL_NAME = "LevelName" |
| const | TAG_RANDOM_SEED = "RandomSeed" |
| const | TAG_SPAWN_X = "SpawnX" |
| const | TAG_SPAWN_Y = "SpawnY" |
| const | TAG_SPAWN_Z = "SpawnZ" |
| const | TAG_TIME = "Time" |
Definition at line 52 of file BedrockWorldData.php.
|
protected |
| CorruptedWorldException | |
| UnsupportedWorldFormatException |
Reimplemented from pocketmine\world\format\io\data\BaseNbtWorldData.
Definition at line 172 of file BedrockWorldData.php.
|
static |
Definition at line 85 of file BedrockWorldData.php.
|
inherited |
Definition at line 109 of file BaseNbtWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::getDifficulty | ( | ) |
Returns the world difficulty. This will be one of the World constants.
Implements pocketmine\world\format\io\WorldData.
Definition at line 214 of file BedrockWorldData.php.
|
inherited |
Returns the generator name
Implements pocketmine\world\format\io\WorldData.
Definition at line 123 of file BaseNbtWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 127 of file BaseNbtWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::getLightningLevel | ( | ) |
Implements pocketmine\world\format\io\WorldData.
Definition at line 246 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::getLightningTime | ( | ) |
Returns the time in ticks to the next lightning level change.
Implements pocketmine\world\format\io\WorldData.
Definition at line 238 of file BedrockWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 115 of file BaseNbtWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::getRainLevel | ( | ) |
Implements pocketmine\world\format\io\WorldData.
Definition at line 230 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::getRainTime | ( | ) |
Returns the time in ticks to the next rain level change.
Implements pocketmine\world\format\io\WorldData.
Definition at line 222 of file BedrockWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 131 of file BaseNbtWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 146 of file BaseNbtWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 135 of file BaseNbtWorldData.php.
|
staticprotectedinherited |
Hack to fix worlds broken previously by older versions of PocketMine-MP which incorrectly saved classpaths of generators into level.dat on imported (not generated) worlds.
This should only have affected leveldb worlds as far as I know, because PC format worlds include the generatorName tag by default. However, MCPE leveldb ones didn't, and so they would get filled in with something broken.
This bug took a long time to get found because previously the generator manager would just return the default generator silently on failure to identify the correct generator, which caused lots of unexpected bugs.
Only classnames which were written into the level.dat from "fixing" the level data are included here. These are hardcoded to avoid problems fixing broken worlds in the future if these classes get moved, renamed or removed.
| string | $className | Classname saved in level.dat |
Definition at line 95 of file BaseNbtWorldData.php.
|
protected |
| CorruptedWorldException | |
| UnsupportedWorldFormatException |
Reimplemented from pocketmine\world\format\io\data\BaseNbtWorldData.
Definition at line 136 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::save | ( | ) |
Saves information about the world state, such as weather, time, etc.
Implements pocketmine\world\format\io\WorldData.
Definition at line 203 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::setDifficulty | ( | int | $difficulty | ) |
Sets the world difficulty.
Implements pocketmine\world\format\io\WorldData.
Definition at line 218 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::setLightningLevel | ( | float | $level | ) |
| float | $level | 0.0 - 1.0 |
Implements pocketmine\world\format\io\WorldData.
Definition at line 250 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::setLightningTime | ( | int | $ticks | ) |
Sets the time in ticks to the next lightning level change.
Implements pocketmine\world\format\io\WorldData.
Definition at line 242 of file BedrockWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 119 of file BaseNbtWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::setRainLevel | ( | float | $level | ) |
| float | $level | 0.0 - 1.0 |
Implements pocketmine\world\format\io\WorldData.
Definition at line 234 of file BedrockWorldData.php.
| pocketmine\world\format\io\data\BedrockWorldData::setRainTime | ( | int | $ticks | ) |
Sets the time in ticks to the next rain level change.
Implements pocketmine\world\format\io\WorldData.
Definition at line 226 of file BedrockWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 150 of file BaseNbtWorldData.php.
|
inherited |
Implements pocketmine\world\format\io\WorldData.
Definition at line 142 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 44 of file BaseNbtWorldData.php.
| const pocketmine\world\format\io\data\BedrockWorldData::CURRENT_CLIENT_VERSION_TARGET = WorldDataVersions::LAST_OPENED_IN |
Definition at line 56 of file BedrockWorldData.php.
| const pocketmine\world\format\io\data\BedrockWorldData::CURRENT_STORAGE_NETWORK_VERSION = WorldDataVersions::NETWORK |
Definition at line 55 of file BedrockWorldData.php.
| const pocketmine\world\format\io\data\BedrockWorldData::CURRENT_STORAGE_VERSION = WorldDataVersions::STORAGE |
Definition at line 54 of file BedrockWorldData.php.
| const pocketmine\world\format\io\data\BedrockWorldData::GENERATOR_FLAT = 2 |
Definition at line 60 of file BedrockWorldData.php.
| const pocketmine\world\format\io\data\BedrockWorldData::GENERATOR_INFINITE = 1 |
Definition at line 59 of file BedrockWorldData.php.
| const pocketmine\world\format\io\data\BedrockWorldData::GENERATOR_LIMITED = 0 |
Definition at line 58 of file BedrockWorldData.php.
|
protectedinherited |
Definition at line 36 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 37 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 35 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 38 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 40 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 41 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 42 of file BaseNbtWorldData.php.
|
protectedinherited |
Definition at line 39 of file BaseNbtWorldData.php.