메소드 |
설명 |
|
__construct ( Level $level, string $path ) |
|
|
close ( ) |
|
|
createChunkSection ( $Y ) : pocketmine\level\format\ChunkSection |
|
|
doGarbageCollection ( ) |
|
|
generate ( string $path, string $name, integer $seed, string $generator, array $options = [] ) |
Generate the needed files in the path given |
|
getChunk ( integer $X, integer $Z, boolean $create = false ) : pocketmine\level\format\FullChunk | pocketmine\level\format\Chunk |
Gets the Chunk object
This method must be implemented by all the level formats. |
|
getGameRules ( ) : CompoundTag |
|
|
getGenerator ( ) : string |
Returns the generator name |
|
getGeneratorOptions ( ) : array |
|
|
getLevel ( ) : Level |
|
|
getLoadedChunks ( ) : pocketmine\level\format\FullChunk | pocketmine\level\format\Chunk[] |
|
|
getName ( ) : string |
|
|
getPath ( ) : string |
|
|
getProviderName ( ) : string |
Returns the full provider name, like "anvil" or "mcregion", will be used to find the correct format. |
|
getProviderOrder ( ) : integer |
|
|
getSeed ( ) : integer | string |
|
|
getSpawn ( ) : Vector3 |
|
|
getTime ( ) : integer |
|
|
isChunkGenerated ( integer $X, integer $Z ) : boolean |
|
|
isChunkLoaded ( integer $X, integer $Z ) : boolean |
|
|
isChunkPopulated ( integer $X, integer $Z ) : boolean |
|
|
isValid ( string $path ) : true |
Tells if the path is a valid level. |
|
loadChunk ( integer $X, integer $Z, boolean $create = false ) : boolean |
|
|
requestChunkTask ( integer $x, integer $z ) : AsyncTask | null |
Requests a MC: PE network chunk to be sent |
|
saveChunk ( integer $X, integer $Z ) |
|
|
saveChunks ( ) |
|
|
setChunk ( integer $chunkX, integer $chunkZ, pocketmine\level\format\FullChunk $chunk ) : mixed |
|
|
setGameRules ( CompoundTag $rules ) |
|
|
setSeed ( integer $value ) |
|
|
setSpawn ( Vector3 $pos ) |
|
|
setTime ( integer $value ) |
|
|
unloadChunk ( integer $X, integer $Z, boolean $safe = true ) : boolean |
|
|
unloadChunks ( ) |
|
|
usesChunkSection ( ) : boolean |
|
|