PHP Class pocketmine\level\format\leveldb\LevelDB

Inheritance: extends pocketmine\level\format\generic\BaseLevelProvider
Exibir arquivo Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$chunks pocketmine\level\format\leveldb\Chunk[]
$db LevelDB

Public Methods

Method Description
__construct ( Level $level, $path )
chunkIndex ( $chunkX, $chunkZ )
close ( )
createChunkSection ( $Y )
generate ( $path, $name, $seed, $generator, array $options = [] )
getChunk ( integer $chunkX, integer $chunkZ, boolean $create = false ) : pocketmine\level\format\leveldb\Chunk
getDatabase ( ) : LevelDB
getGenerator ( )
getGeneratorOptions ( )
getLoadedChunks ( )
getProviderName ( )
getProviderOrder ( )
isChunkGenerated ( $chunkX, $chunkZ )
isChunkLoaded ( $x, $z )
isChunkPopulated ( $chunkX, $chunkZ )
isValid ( $path )
loadChunk ( $chunkX, $chunkZ, $create = false )
requestChunkTask ( $x, $z )
saveChunk ( $x, $z )
saveChunks ( )
saveLevelData ( )
setChunk ( $chunkX, $chunkZ, pocketmine\level\format\FullChunk $chunk )
unloadChunk ( $x, $z, $safe = true )
unloadChunks ( )
usesChunkSection ( )

Private Methods

Method Description
chunkExists ( $chunkX, $chunkZ )
readChunk ( $chunkX, $chunkZ ) : pocketmine\level\format\leveldb\Chunk
writeChunk ( pocketmine\level\format\leveldb\Chunk $chunk )

Method Details

__construct() public method

public __construct ( Level $level, $path )
$level pocketmine\level\Level

chunkIndex() public static method

public static chunkIndex ( $chunkX, $chunkZ )

close() public method

public close ( )

createChunkSection() public static method

public static createChunkSection ( $Y )

generate() public static method

public static generate ( $path, $name, $seed, $generator, array $options = [] )
$options array

getChunk() public method

public getChunk ( integer $chunkX, integer $chunkZ, boolean $create = false ) : pocketmine\level\format\leveldb\Chunk
$chunkX integer
$chunkZ integer
$create boolean
return pocketmine\level\format\leveldb\Chunk

getDatabase() public method

public getDatabase ( ) : LevelDB
return LevelDB

getGenerator() public method

public getGenerator ( )

getGeneratorOptions() public method

public getGeneratorOptions ( )

getLoadedChunks() public method

public getLoadedChunks ( )

getProviderName() public static method

public static getProviderName ( )

getProviderOrder() public static method

public static getProviderOrder ( )

isChunkGenerated() public method

public isChunkGenerated ( $chunkX, $chunkZ )

isChunkLoaded() public method

public isChunkLoaded ( $x, $z )

isChunkPopulated() public method

public isChunkPopulated ( $chunkX, $chunkZ )

isValid() public static method

public static isValid ( $path )

loadChunk() public method

public loadChunk ( $chunkX, $chunkZ, $create = false )

requestChunkTask() public method

public requestChunkTask ( $x, $z )

saveChunk() public method

public saveChunk ( $x, $z )

saveChunks() public method

public saveChunks ( )

saveLevelData() public method

public saveLevelData ( )

setChunk() public method

public setChunk ( $chunkX, $chunkZ, pocketmine\level\format\FullChunk $chunk )
$chunk pocketmine\level\format\FullChunk

unloadChunk() public method

public unloadChunk ( $x, $z, $safe = true )

unloadChunks() public method

public unloadChunks ( )

usesChunkSection() public static method

public static usesChunkSection ( )

Property Details

$chunks protected_oe property

protected Chunk[],pocketmine\level\format\leveldb $chunks
return pocketmine\level\format\leveldb\Chunk[]

$db protected_oe property

protected LevelDB,pocketmine\level\format\leveldb $db
return LevelDB