PHP Class pocketmine\level\format\mcregion\RegionLoader

ファイルを表示 Open project: robske110/ClearSky

Public Properties

Property Type Description
$COMPRESSION_LEVEL 256 sectors, (1 MiB)
$lastUsed

Protected Properties

Property Type Description
$filePath
$filePointer
$lastSector
$levelProvider pocketmine\level\format\LevelProvider
$locationTable
$x
$z

Public Methods

Method Description
__construct ( pocketmine\level\format\LevelProvider $level, $regionX, $regionZ )
__destruct ( )
chunkExists ( $x, $z )
close ( )
doSlowCleanUp ( )
getX ( )
getZ ( )
readChunk ( $x, $z )
removeChunk ( $x, $z )
writeChunk ( pocketmine\level\format\FullChunk $chunk )

Protected Methods

Method Description
createBlank ( )
getChunkOffset ( $x, $z )
isChunkGenerated ( $index )
loadLocationTable ( )
saveChunk ( $x, $z, $chunkData )
unserializeChunk ( $data )
writeLocationIndex ( $index )

Private Methods

Method Description
cleanGarbage ( )
writeLocationTable ( )

Method Details

__construct() public method

public __construct ( pocketmine\level\format\LevelProvider $level, $regionX, $regionZ )
$level pocketmine\level\format\LevelProvider

__destruct() public method

public __destruct ( )

chunkExists() public method

public chunkExists ( $x, $z )

close() public method

public close ( )

createBlank() protected method

protected createBlank ( )

doSlowCleanUp() public method

public doSlowCleanUp ( )

getChunkOffset() protected static method

protected static getChunkOffset ( $x, $z )

getX() public method

public getX ( )

getZ() public method

public getZ ( )

isChunkGenerated() protected method

protected isChunkGenerated ( $index )

loadLocationTable() protected method

protected loadLocationTable ( )

readChunk() public method

public readChunk ( $x, $z )

removeChunk() public method

public removeChunk ( $x, $z )

saveChunk() protected method

protected saveChunk ( $x, $z, $chunkData )

unserializeChunk() protected method

protected unserializeChunk ( $data )

writeChunk() public method

public writeChunk ( pocketmine\level\format\FullChunk $chunk )
$chunk pocketmine\level\format\FullChunk

writeLocationIndex() protected method

protected writeLocationIndex ( $index )

Property Details

$COMPRESSION_LEVEL public_oe static_oe property

256 sectors, (1 MiB)
public static $COMPRESSION_LEVEL

$filePath protected_oe property

protected $filePath

$filePointer protected_oe property

protected $filePointer

$lastSector protected_oe property

protected $lastSector

$lastUsed public_oe property

public $lastUsed

$levelProvider protected_oe property

protected LevelProvider,pocketmine\level\format $levelProvider
return pocketmine\level\format\LevelProvider

$locationTable protected_oe property

protected $locationTable

$x protected_oe property

protected $x

$z protected_oe property

protected $z