RegionWorldProvider
Extends BaseWorldProvider
Properties
$regions protected
php
protected array $regionsMethods
calculateChunkCount()
php
public function calculateChunkCount() : intclose()
php
public function close() : voiddeserializeChunk() protected
php
abstract protected function deserializeChunk(string $data, \Logger $logger) : ?\pocketmine\world\format\io\LoadedChunkDatadoGarbageCollection()
php
public function doGarbageCollection() : voidgetAllChunks()
php
public function getAllChunks(bool $skipCorrupted = false, ?\Logger $logger = null) : \GeneratorgetCompoundList() protected
php
protected static function getCompoundList(string $context, \pocketmine\nbt\tag\ListTag $list) : arraygetPcWorldFormatVersion() protected
php
abstract protected static function getPcWorldFormatVersion() : intReturns the storage version as per Minecraft PC world formats.
getRegion() protected
php
protected function getRegion(int $regionX, int $regionZ) : ?\pocketmine\world\format\io\region\RegionLoadergetRegionFileExtension() protected
php
abstract protected static function getRegionFileExtension() : stringReturns the file extension used for regions in this region-based format.
getRegionIndex()
php
public static function getRegionIndex(int $chunkX, int $chunkZ, &$regionX, &$regionZ) : voidTODO: make this private
isValid()
php
public static function isValid(string $path) : boolloadChunk()
php
public function loadChunk(int $chunkX, int $chunkZ) : ?\pocketmine\world\format\io\LoadedChunkDataloadLevelData() protected
php
protected function loadLevelData() : \pocketmine\world\format\io\WorldDataloadRegion() protected
php
protected function loadRegion(int $regionX, int $regionZ) : \pocketmine\world\format\io\region\RegionLoaderpathToRegion() protected
php
protected function pathToRegion(int $regionX, int $regionZ) : stringReturns the path to a specific region file based on its X/Z coordinates
readFixedSizeByteArray() protected
php
protected static function readFixedSizeByteArray(\pocketmine\nbt\tag\CompoundTag $chunk, string $tagName, int $length) : stringunloadRegion() protected
php
protected function unloadRegion(int $regionX, int $regionZ) : void