PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
|
Public Member Functions | |
calculateChunkCount () | |
close () | |
doGarbageCollection () | |
getAllChunks (bool $skipCorrupted=false, ?\Logger $logger=null) | |
getPath () | |
getWorldData () | |
getWorldMaxY () | |
getWorldMinY () | |
loadChunk (int $chunkX, int $chunkZ) | |
saveChunk (int $chunkX, int $chunkZ, ChunkData $chunkData, int $dirtyFlags) | |
Static Public Member Functions | |
static | generate (string $path, string $name, WorldCreationOptions $options) |
static | getRegionIndex (int $chunkX, int $chunkZ, &$regionX, &$regionZ) |
static | isValid (string $path) |
Protected Member Functions | |
deserializeChunk (string $data, \Logger $logger) | |
getRegion (int $regionX, int $regionZ) | |
loadLevelData () | |
loadRegion (int $regionX, int $regionZ) | |
palettizeLegacySubChunkFromColumn (string $idArray, string $metaArray, int $yOffset, \Logger $logger) | |
palettizeLegacySubChunkXZY (string $idArray, string $metaArray, \Logger $logger) | |
palettizeLegacySubChunkYZX (string $idArray, string $metaArray, \Logger $logger) | |
pathToRegion (int $regionX, int $regionZ) | |
serializeChunk (ChunkData $chunk) | |
unloadRegion (int $regionX, int $regionZ) | |
Static Protected Member Functions | |
static | getCompoundList (string $context, ListTag $list) |
static | getPcWorldFormatVersion () |
static | getRegionFileExtension () |
static | readFixedSizeByteArray (CompoundTag $chunk, string $tagName, int $length) |
Protected Attributes | |
BlockDataUpgrader | $blockDataUpgrader |
BlockStateDeserializer | $blockStateDeserializer |
BlockStateSerializer | $blockStateSerializer |
array | $regions = [] |
WorldData | $worldData |
This class implements the stuff needed for general region-based world providers to support saving. While this isn't used at the time of writing, it may come in useful if Java 1.13 Anvil support is ever implemented, or for a custom world format based on the region concept.
Definition at line 39 of file WritableRegionWorldProvider.php.
|
inherited |
Returns the number of chunks in the provider. Used for world conversion time estimations.
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 251 of file RegionWorldProvider.php.
|
inherited |
Performs cleanups necessary when the world provider is closed and no longer needed.
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 140 of file RegionWorldProvider.php.
|
abstractprotectedinherited |
CorruptedChunkException |
Reimplemented in pocketmine\world\format\io\region\McRegion.
|
inherited |
Performs garbage collection in the world provider, such as cleaning up regions in Region-based worlds.
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 82 of file RegionWorldProvider.php.
|
static |
Definition at line 41 of file WritableRegionWorldProvider.php.
|
inherited |
Returns a generator which yields all the chunks in this world.
CorruptedChunkException |
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 220 of file RegionWorldProvider.php.
References Logger\error().
|
staticprotectedinherited |
CorruptedChunkException |
Definition at line 156 of file RegionWorldProvider.php.
|
inherited |
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 116 of file BaseWorldProvider.php.
|
staticabstractprotectedinherited |
Returns the storage version as per Minecraft PC world formats.
Reimplemented in pocketmine\world\format\io\region\Anvil, pocketmine\world\format\io\region\McRegion, and pocketmine\world\format\io\region\PMAnvil.
|
protectedinherited |
Definition at line 103 of file RegionWorldProvider.php.
|
staticabstractprotectedinherited |
Returns the file extension used for regions in this region-based format.
Reimplemented in pocketmine\world\format\io\region\Anvil, pocketmine\world\format\io\region\McRegion, and pocketmine\world\format\io\region\PMAnvil.
|
staticinherited |
int | $regionX | reference parameter |
int | $regionZ | reference parameter @phpstan-param-out int $regionX @phpstan-param-out int $regionZ |
Definition at line 98 of file RegionWorldProvider.php.
|
inherited |
Returns information about the world
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 120 of file BaseWorldProvider.php.
|
inherited |
Gets the build height limit of this world
Implemented in pocketmine\world\format\io\leveldb\LevelDB, pocketmine\world\format\io\region\Anvil, pocketmine\world\format\io\region\McRegion, and pocketmine\world\format\io\region\PMAnvil.
|
inherited |
Returns the lowest buildable Y coordinate of this world
Implemented in pocketmine\world\format\io\leveldb\LevelDB, pocketmine\world\format\io\region\Anvil, pocketmine\world\format\io\region\McRegion, and pocketmine\world\format\io\region\PMAnvil.
|
staticinherited |
Definition at line 61 of file RegionWorldProvider.php.
|
inherited |
CorruptedChunkException |
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 192 of file RegionWorldProvider.php.
|
protectedinherited |
CorruptedWorldException | |
UnsupportedWorldFormatException |
Reimplemented from pocketmine\world\format\io\BaseWorldProvider.
Definition at line 78 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 114 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 112 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 104 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 108 of file BaseWorldProvider.php.
|
protectedinherited |
Returns the path to a specific region file based on its X/Z coordinates
Definition at line 110 of file RegionWorldProvider.php.
|
staticprotectedinherited |
Definition at line 174 of file RegionWorldProvider.php.
pocketmine\world\format\io\region\WritableRegionWorldProvider::saveChunk | ( | int | $chunkX, |
int | $chunkZ, | ||
ChunkData | $chunkData, | ||
int | $dirtyFlags | ||
) |
Saves a chunk (usually to disk).
Implements pocketmine\world\format\io\WritableWorldProvider.
Definition at line 56 of file WritableRegionWorldProvider.php.
|
protectedinherited |
Definition at line 133 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 42 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 41 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 43 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 76 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 39 of file BaseWorldProvider.php.