|
PocketMine-MP 5.39.3 git-9a46a8bd745880ddf8eebaf28cda326bb97d2efa
|
Inheritance diagram for pocketmine\world\format\io\region\WritableRegionWorldProvider:
Collaboration diagram for pocketmine\world\format\io\region\WritableRegionWorldProvider: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 252 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 147 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 87 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 221 of file RegionWorldProvider.php.
References Logger\error().
Here is the call graph for this function:
|
staticprotectedinherited |
| CorruptedChunkException |
Definition at line 165 of file RegionWorldProvider.php.
|
inherited |
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 118 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 110 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 | null | $regionX | reference parameter |
| int | null | $regionZ | reference parameter @phpstan-param-out int $regionX @phpstan-param-out int $regionZ |
TODO: make this private
Definition at line 105 of file RegionWorldProvider.php.
|
inherited |
Returns information about the world
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 122 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 58 of file RegionWorldProvider.php.
|
inherited |
| CorruptedChunkException |
Implements pocketmine\world\format\io\WorldProvider.
Definition at line 191 of file RegionWorldProvider.php.
|
protectedinherited |
| CorruptedWorldException | |
| UnsupportedWorldFormatException |
Reimplemented from pocketmine\world\format\io\BaseWorldProvider.
Definition at line 83 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 121 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 114 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 106 of file BaseWorldProvider.php.
|
protectedinherited |
Definition at line 110 of file BaseWorldProvider.php.
|
protectedinherited |
Returns the path to a specific region file based on its X/Z coordinates
Definition at line 117 of file RegionWorldProvider.php.
|
staticprotectedinherited |
Definition at line 173 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 140 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 81 of file RegionWorldProvider.php.
|
protectedinherited |
Definition at line 39 of file BaseWorldProvider.php.