RegionLoader
Constants
COMPRESSION_GZIP
php
public const COMPRESSION_GZIP = 1COMPRESSION_ZLIB
php
public const COMPRESSION_ZLIB = 2FIRST_SECTOR
php
public const FIRST_SECTOR = 2Properties
$filePointer protected
php
protected $filePointer$garbageTable protected
php
protected \pocketmine\world\format\io\region\RegionGarbageMap $garbageTable$lastUsed
php
public int $lastUsed$locationTable protected
php
protected array $locationTable$nextSector protected
php
protected int $nextSectorMethods
__destruct()
php
public function __destruct()calculateChunkCount()
php
public function calculateChunkCount() : intchunkExists()
php
public function chunkExists(int $x, int $z) : boolclose()
php
public function close() : voidCloses the file
createBlank() protected
php
protected function createBlank() : voidcreateNew()
php
public static function createNew(string $filePath) : selfgenerateSectorMap()
php
public function generateSectorMap(string $usedChar, string $freeChar) : stringgetChunkCoords() protected
php
protected static function getChunkCoords(int $offset, ?int &$x, ?int &$z) : voidgetChunkOffset() protected
php
protected static function getChunkOffset(int $x, int $z) : intgetFilePath()
php
public function getFilePath() : stringgetProportionUnusedSpace()
php
public function getProportionUnusedSpace() : floatReturns a float between 0 and 1 indicating what fraction of the file is currently unused space.
isChunkGenerated() protected
php
protected function isChunkGenerated(int $index) : boolloadExisting()
php
public static function loadExisting(string $filePath) : selfloadLocationTable() protected
php
protected function loadLocationTable() : voidreadChunk()
php
public function readChunk(int $x, int $z) : ?stringremoveChunk()
php
public function removeChunk(int $x, int $z) : voidwriteChunk()
php
public function writeChunk(int $x, int $z, string $chunkData) : voidwriteLocationIndex() protected
php
protected function writeLocationIndex(int $index) : void