PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\level\format\mcregion\RegionLoader Class Reference
+ Inheritance diagram for pocketmine\level\format\mcregion\RegionLoader:
+ Collaboration diagram for pocketmine\level\format\mcregion\RegionLoader:

Public Member Functions

 __construct (LevelProvider $level, $regionX, $regionZ)
 
 readChunk ($x, $z, $generate=true, $forward=false)
 
 chunkExists ($x, $z)
 
 generateChunk ($x, $z)
 
 removeChunk ($x, $z)
 
 writeChunk (FullChunk $chunk)
 
 close ()
 
 doSlowCleanUp ()
 
 getX ()
 
 getZ ()
 

Public Attributes

const VERSION = 1
 
const COMPRESSION_GZIP = 1
 
const COMPRESSION_ZLIB = 2
 
const MAX_SECTOR_LENGTH = 32 << 12
 

Static Public Attributes

static $COMPRESSION_LEVEL = 7
 

Protected Member Functions

 isChunkGenerated ($index)
 
 saveChunk ($x, $z, $chunkData)
 
 loadLocationTable ()
 
 writeLocationIndex ($index)
 
 createBlank ()
 

Static Protected Member Functions

static getChunkOffset ($x, $z)
 

Protected Attributes

 $x
 
 $z
 
 $filePath
 
 $filePointer
 
 $lastSector
 
 $levelProvider
 
 $locationTable = []
 

Detailed Description

Definition at line 37 of file mcregion/RegionLoader.php.


The documentation for this class was generated from the following file: