|
|
| __construct ($seed, $waterHeight=0) |
| |
|
| getWaterHeight () |
| |
| | getBlockIdAt (int $x, int $y, int $z) |
| |
| | setBlockIdAt (int $x, int $y, int $z, int $id) |
| |
| | getBlockDataAt (int $x, int $y, int $z) |
| |
| | setBlockDataAt (int $x, int $y, int $z, int $data) |
| |
| | getBlockLightAt (int $x, int $y, int $z) |
| |
| | setBlockLightAt (int $x, int $y, int $z, int $level) |
| |
| | getChunk (int $chunkX, int $chunkZ) |
| |
| | setChunk (int $chunkX, int $chunkZ, Chunk $chunk=null) |
| |
|
| cleanChunks () |
| |
| | getSeed () |
| |
| | updateBlockLight (int $x, int $y, int $z) |
| |
|
|
| $chunks = [] |
| |
|
| $seed |
| |
|
| $waterHeight = 0 |
| |
| getBlockDataAt |
( |
int |
$x, |
|
|
int |
$y, |
|
|
int |
$z |
|
) |
| |
Gets the raw block metadata
- Parameters
-
- Returns
- int 0-15
Implements ChunkManager.
| getBlockIdAt |
( |
int |
$x, |
|
|
int |
$y, |
|
|
int |
$z |
|
) |
| |
Gets the raw block id.
- Parameters
-
- Returns
- int 0-255
Implements ChunkManager.
| getBlockLightAt |
( |
int |
$x, |
|
|
int |
$y, |
|
|
int |
$z |
|
) |
| |
Gets the raw block light level
- Parameters
-
- Returns
- int 0-15
Implements ChunkManager.
| getChunk |
( |
int |
$chunkX, |
|
|
int |
$chunkZ |
|
) |
| |
Gets the level seed
- Returns
- int|string
Implements ChunkManager.
| setBlockDataAt |
( |
int |
$x, |
|
|
int |
$y, |
|
|
int |
$z, |
|
|
int |
$data |
|
) |
| |
Sets the raw block metadata.
- Parameters
-
| int | $x | |
| int | $y | |
| int | $z | |
| int | $data | 0-15 |
Implements ChunkManager.
| setBlockIdAt |
( |
int |
$x, |
|
|
int |
$y, |
|
|
int |
$z, |
|
|
int |
$id |
|
) |
| |
Sets the raw block id.
- Parameters
-
| int | $x | |
| int | $y | |
| int | $z | |
| int | $id | 0-255 |
Implements ChunkManager.
| setBlockLightAt |
( |
int |
$x, |
|
|
int |
$y, |
|
|
int |
$z, |
|
|
int |
$level |
|
) |
| |
Sets the raw block light level.
- Parameters
-
| int | $x | |
| int | $y | |
| int | $z | |
| int | $level | 0-15 |
Implements ChunkManager.
| setChunk |
( |
int |
$chunkX, |
|
|
int |
$chunkZ, |
|
|
Chunk |
$chunk = null |
|
) |
| |
- Parameters
-
| int | $chunkX | |
| int | $chunkZ | |
| Chunk | $chunk | |
Implements ChunkManager.
The documentation for this class was generated from the following file:
- src/pocketmine/level/SimpleChunkManager.php