|
| | __construct (Level $level, $path) |
| |
| | requestChunkTask ($x, $z) |
| |
| | getPath () |
| |
| | getGenerator () |
| |
| | getGeneratorOptions () |
| |
| | getChunk ($X, $Z, $create=false) |
| |
|
| saveChunks () |
| |
| | saveChunk ($X, $Z) |
| |
|
| unloadChunks () |
| |
| | loadChunk ($X, $Z, $create=false) |
| |
| | unloadChunk ($X, $Z, $safe=true) |
| |
| | isChunkGenerated ($X, $Z) |
| |
| | isChunkPopulated ($X, $Z) |
| |
| | isChunkLoaded ($X, $Z) |
| |
| | setChunk ($chunkX, $chunkZ, FullChunk $chunk) |
| |
| | getName () |
| |
| | getTime () |
| |
| | setTime ($value) |
| |
| | getSeed () |
| |
| | setSeed ($value) |
| |
| | getSpawn () |
| |
| | setSpawn (Vector3 $pos) |
| |
| | getLoadedChunks () |
| |
|
| doGarbageCollection () |
| |
| | getLevel () |
| |
|
| close () |
| |
|
|
const | ORDER_YZX = 0 |
| |
|
const | ORDER_ZXY = 1 |
| |
| __construct |
( |
Level |
$level, |
|
|
|
$path |
|
) |
| |
| static createChunkSection |
( |
|
$Y | ) |
|
|
static |
| static generate |
( |
|
$path, |
|
|
|
$name, |
|
|
|
$seed, |
|
|
|
$generator, |
|
|
array |
$options = [] |
|
) |
| |
|
static |
Generate the needed files in the path given
- Parameters
-
| string | $path | |
| string | $name | |
| int | $seed | |
| string | $generator | |
| array[] | $options |
Implemented in LevelDB, and McRegion.
| getChunk |
( |
|
$X, |
|
|
|
$Z, |
|
|
|
$create = false |
|
) |
| |
Gets the Chunk object This method must be implemented by all the level formats.
- Parameters
-
| int | $X | absolute Chunk X value |
| int | $Z | absolute Chunk Z value |
| bool | $create | Whether to generate the chunk if it does not exist |
- Returns
- FullChunk|Chunk
Implemented in LevelDB, McRegion, and Anvil.
Returns the generator name
- Returns
- string
Implemented in LevelDB, and McRegion.
| static getProviderName |
( |
| ) |
|
|
static |
Returns the full provider name, like "anvil" or "mcregion", will be used to find the correct format.
- Returns
- string
Implemented in LevelDB, McRegion, and Anvil.
| static getProviderOrder |
( |
| ) |
|
|
static |
| isChunkGenerated |
( |
|
$X, |
|
|
|
$Z |
|
) |
| |
| isChunkPopulated |
( |
|
$X, |
|
|
|
$Z |
|
) |
| |
Tells if the path is a valid level. This must tell if the current format supports opening the files in the directory
- Parameters
-
- Returns
- true
Implemented in LevelDB, McRegion, and Anvil.
| loadChunk |
( |
|
$X, |
|
|
|
$Z, |
|
|
|
$create = false |
|
) |
| |
| requestChunkTask |
( |
|
$x, |
|
|
|
$z |
|
) |
| |
Requests a MC: PE network chunk to be sent
- Parameters
-
- Returns
- |null
Implemented in LevelDB, McRegion, and Anvil.
| setChunk |
( |
|
$chunkX, |
|
|
|
$chunkZ, |
|
|
FullChunk |
$chunk |
|
) |
| |
| unloadChunk |
( |
|
$X, |
|
|
|
$Z, |
|
|
|
$safe = true |
|
) |
| |
| static usesChunkSection |
( |
| ) |
|
|
static |
The documentation for this interface was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/level/format/LevelProvider.php