Definition at line 58 of file RegionLoader.php.
◆ __destruct()
pocketmine\world\format\io\region\RegionLoader::__destruct |
( |
| ) |
|
◆ calculateChunkCount()
pocketmine\world\format\io\region\RegionLoader::calculateChunkCount |
( |
| ) |
|
◆ chunkExists()
pocketmine\world\format\io\region\RegionLoader::chunkExists |
( |
int |
$x, |
|
|
int |
$z |
|
) |
| |
◆ close()
pocketmine\world\format\io\region\RegionLoader::close |
( |
| ) |
|
◆ createBlank()
pocketmine\world\format\io\region\RegionLoader::createBlank |
( |
| ) |
|
|
protected |
◆ createNew()
static pocketmine\world\format\io\region\RegionLoader::createNew |
( |
string |
$filePath | ) |
|
|
static |
◆ generateSectorMap()
pocketmine\world\format\io\region\RegionLoader::generateSectorMap |
( |
string |
$usedChar, |
|
|
string |
$freeChar |
|
) |
| |
◆ getChunkCoords()
static pocketmine\world\format\io\region\RegionLoader::getChunkCoords |
( |
int |
$offset, |
|
|
?int & |
$x, |
|
|
?int & |
$z |
|
) |
| |
|
staticprotected |
- Parameters
-
int | $x | reference parameter |
int | $z | reference parameter @phpstan-param-out int $x @phpstan-param-out int $z |
Definition at line 275 of file RegionLoader.php.
◆ getChunkOffset()
static pocketmine\world\format\io\region\RegionLoader::getChunkOffset |
( |
int |
$x, |
|
|
int |
$z |
|
) |
| |
|
staticprotected |
◆ getFilePath()
pocketmine\world\format\io\region\RegionLoader::getFilePath |
( |
| ) |
|
◆ getProportionUnusedSpace()
pocketmine\world\format\io\region\RegionLoader::getProportionUnusedSpace |
( |
| ) |
|
Returns a float between 0 and 1 indicating what fraction of the file is currently unused space.
Definition at line 420 of file RegionLoader.php.
◆ isChunkGenerated()
pocketmine\world\format\io\region\RegionLoader::isChunkGenerated |
( |
int |
$index | ) |
|
|
protected |
◆ loadExisting()
static pocketmine\world\format\io\region\RegionLoader::loadExisting |
( |
string |
$filePath | ) |
|
|
static |
◆ loadLocationTable()
pocketmine\world\format\io\region\RegionLoader::loadLocationTable |
( |
| ) |
|
|
protected |
◆ readChunk()
pocketmine\world\format\io\region\RegionLoader::readChunk |
( |
int |
$x, |
|
|
int |
$z |
|
) |
| |
- Exceptions
-
InvalidArgumentException if invalid coordinates are given
- Exceptions
-
CorruptedChunkException | if chunk corruption is detected |
Definition at line 134 of file RegionLoader.php.
◆ removeChunk()
pocketmine\world\format\io\region\RegionLoader::removeChunk |
( |
int |
$x, |
|
|
int |
$z |
|
) |
| |
◆ writeChunk()
pocketmine\world\format\io\region\RegionLoader::writeChunk |
( |
int |
$x, |
|
|
int |
$z, |
|
|
string |
$chunkData |
|
) |
| |
◆ writeLocationIndex()
pocketmine\world\format\io\region\RegionLoader::writeLocationIndex |
( |
int |
$index | ) |
|
|
protected |
◆ $filePointer
pocketmine\world\format\io\region\RegionLoader::$filePointer |
|
protected |
◆ $garbageTable
◆ $lastUsed
int pocketmine\world\format\io\region\RegionLoader::$lastUsed |
◆ $locationTable
array pocketmine\world\format\io\region\RegionLoader::$locationTable = [] |
|
protected |
◆ $nextSector
int pocketmine\world\format\io\region\RegionLoader::$nextSector = self::FIRST_SECTOR |
|
protected |
◆ COMPRESSION_GZIP
const pocketmine\world\format\io\region\RegionLoader::COMPRESSION_GZIP = 1 |
◆ COMPRESSION_ZLIB
const pocketmine\world\format\io\region\RegionLoader::COMPRESSION_ZLIB = 2 |
◆ FIRST_SECTOR
const pocketmine\world\format\io\region\RegionLoader::FIRST_SECTOR = 2 |
The documentation for this class was generated from the following file: