PocketMine
RegionLoader Class Reference
Inheritance diagram for RegionLoader:
RegionLoader

Public Member Functions

 __construct (LevelProvider $level, $regionX, $regionZ)
 
 readChunk ($x, $z)
 
 chunkExists ($x, $z)
 
 removeChunk ($x, $z)
 
 writeChunk (FullChunk $chunk)
 
 close ()
 
 doSlowCleanUp ()
 
 getX ()
 
 getZ ()
 

Data Fields

const VERSION = 1
 
const COMPRESSION_GZIP = 1
 
const COMPRESSION_ZLIB = 2
 
const MAX_SECTOR_LENGTH = 256 << 12
 
 $lastUsed
 

Static Public Attributes

static $COMPRESSION_LEVEL = 7
 

Protected Member Functions

 isChunkGenerated ($index)
 
 unserializeChunk ($data)
 
 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 = []
 

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