Skip to content

RegionWorldProvider ​

abstract class · pocketmine\world\format\io\region\RegionWorldProvider · source

Extends BaseWorldProvider

Properties ​

$regions protected ​

php
protected array $regions

Methods ​

calculateChunkCount() ​

php
public function calculateChunkCount() : int

close() ​

php
public function close() : void

deserializeChunk() protected ​

php
abstract protected function deserializeChunk(string $data, \Logger $logger) : ?\pocketmine\world\format\io\LoadedChunkData

doGarbageCollection() ​

php
public function doGarbageCollection() : void

getAllChunks() ​

php
public function getAllChunks(bool $skipCorrupted = false, ?\Logger $logger = null) : \Generator

getCompoundList() protected ​

php
protected static function getCompoundList(string $context, \pocketmine\nbt\tag\ListTag $list) : array

getPcWorldFormatVersion() protected ​

php
abstract protected static function getPcWorldFormatVersion() : int

Returns the storage version as per Minecraft PC world formats.

getRegion() protected ​

php
protected function getRegion(int $regionX, int $regionZ) : ?\pocketmine\world\format\io\region\RegionLoader

getRegionFileExtension() protected ​

php
abstract protected static function getRegionFileExtension() : string

Returns the file extension used for regions in this region-based format.

getRegionIndex() ​

php
public static function getRegionIndex(int $chunkX, int $chunkZ, &$regionX, &$regionZ) : void

TODO: make this private

isValid() ​

php
public static function isValid(string $path) : bool

loadChunk() ​

php
public function loadChunk(int $chunkX, int $chunkZ) : ?\pocketmine\world\format\io\LoadedChunkData

loadLevelData() protected ​

php
protected function loadLevelData() : \pocketmine\world\format\io\WorldData

loadRegion() protected ​

php
protected function loadRegion(int $regionX, int $regionZ) : \pocketmine\world\format\io\region\RegionLoader

pathToRegion() protected ​

php
protected function pathToRegion(int $regionX, int $regionZ) : string

Returns 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) : string

unloadRegion() protected ​

php
protected function unloadRegion(int $regionX, int $regionZ) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.