PHP Class pocketmine\level\format\mcregion\McRegion

Inheritance: extends pocketmine\level\format\generic\BaseLevelProvider
ファイルを表示 Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$chunks Chunk[]
$regions RegionLoader[]

Public Methods

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

Protected Methods

Method Description
getRegion ( $x, $z ) : RegionLoader
loadRegion ( $x, $z )

Method Details

close() public method

public close ( )

createChunkSection() public static method

public static createChunkSection ( $Y )

doGarbageCollection() public method

public doGarbageCollection ( )

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 ) : Chunk
$chunkX integer
$chunkZ integer
$create boolean
return Chunk

getEmptyChunk() public method

public getEmptyChunk ( $chunkX, $chunkZ )

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 ( )

getRegion() protected method

protected getRegion ( $x, $z ) : RegionLoader
$x
$z
return RegionLoader

getRegionIndex() public static method

public static getRegionIndex ( $chunkX, $chunkZ, &$x, &$z )

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 )

loadRegion() protected method

protected loadRegion ( $x, $z )

requestChunkTask() public method

public requestChunkTask ( $x, $z )

saveChunk() public method

public saveChunk ( $x, $z )

saveChunks() public method

public saveChunks ( )

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\mcregion $chunks
return Chunk[]

$regions protected_oe property

protected RegionLoader[],pocketmine\level\format\mcregion $regions
return RegionLoader[]