PocketMine
|
Public Member Functions | |
getX () | |
getZ () | |
setX ($x) | |
setZ ($z) | |
getProvider () | |
setProvider (LevelProvider $provider) | |
getBlock ($x, $y, $z, &$blockId, &$meta=null) | |
getFullBlock ($x, $y, $z) | |
setBlock ($x, $y, $z, $blockId=null, $meta=null) | |
getBlockId ($x, $y, $z) | |
setBlockId ($x, $y, $z, $id) | |
getBlockData ($x, $y, $z) | |
setBlockData ($x, $y, $z, $data) | |
getBlockExtraData ($x, $y, $z) | |
setBlockExtraData ($x, $y, $z, $data) | |
getBlockSkyLight ($x, $y, $z) | |
setBlockSkyLight ($x, $y, $z, $level) | |
getBlockLight ($x, $y, $z) | |
setBlockLight ($x, $y, $z, $level) | |
getHighestBlockAt ($x, $z) | |
getHeightMap ($x, $z) | |
setHeightMap ($x, $z, $value) | |
recalculateHeightMap () | |
populateSkyLight () | |
getBiomeId ($x, $z) | |
setBiomeId ($x, $z, $biomeId) | |
getBiomeColor ($x, $z) | |
getBlockIdColumn ($x, $z) | |
getBlockDataColumn ($x, $z) | |
getBlockSkyLightColumn ($x, $z) | |
getBlockLightColumn ($x, $z) | |
setBiomeColor ($x, $z, $R, $G, $B) | |
isLightPopulated () | |
setLightPopulated ($value=1) | |
isPopulated () | |
setPopulated ($value=1) | |
isGenerated () | |
setGenerated ($value=1) | |
addEntity (Entity $entity) | |
removeEntity (Entity $entity) | |
addTile (Tile $tile) | |
removeTile (Tile $tile) | |
getEntities () | |
getTiles () | |
getTile ($x, $y, $z) | |
isLoaded () | |
load ($generate=true) | |
unload ($save=true, $safe=true) | |
initChunk () | |
getBiomeIdArray () | |
getBiomeColorArray () | |
getHeightMapArray () | |
getBlockIdArray () | |
getBlockDataArray () | |
getBlockExtraDataArray () | |
getBlockSkyLightArray () | |
getBlockLightArray () | |
toBinary () | |
toFastBinary () | |
hasChanged () | |
setChanged ($changed=true) | |
Static Public Member Functions | |
static | fromBinary ($data, LevelProvider $provider=null) |
static | fromFastBinary ($data, LevelProvider $provider=null) |
static | getEmptyChunk ($chunkX, $chunkZ, LevelProvider $provider=null) |
addEntity | ( | Entity | $entity | ) |
Entity | $entity |
Implemented in BaseFullChunk.
addTile | ( | Tile | $tile | ) |
Tile | $tile |
Implemented in BaseFullChunk.
|
static |
string | $data | |
LevelProvider | $provider |
|
static |
string | $data | |
LevelProvider | $provider |
Implemented in BaseFullChunk, Chunk, Chunk, and Chunk.
getBiomeColor | ( | $x, | |
$z | |||
) |
getBiomeColorArray | ( | ) |
Implemented in BaseFullChunk.
getBiomeId | ( | $x, | |
$z | |||
) |
getBiomeIdArray | ( | ) |
Implemented in BaseFullChunk.
getBlock | ( | $x, | |
$y, | |||
$z, | |||
& | $blockId, | ||
& | $meta = null |
||
) |
Modifies $blockId and $meta
int | $x | 0-15 |
int | $y | 0-127 |
int | $z | 0-15 |
int | &$blockId | |
int | &$meta |
getBlockData | ( | $x, | |
$y, | |||
$z | |||
) |
getBlockExtraData | ( | $x, | |
$y, | |||
$z | |||
) |
getBlockId | ( | $x, | |
$y, | |||
$z | |||
) |
getBlockLight | ( | $x, | |
$y, | |||
$z | |||
) |
getBlockSkyLight | ( | $x, | |
$y, | |||
$z | |||
) |
|
static |
int | $chunkX | |
int | $chunkZ | |
LevelProvider | $provider |
getEntities | ( | ) |
Implemented in BaseFullChunk.
getFullBlock | ( | $x, | |
$y, | |||
$z | |||
) |
getHeightMap | ( | $x, | |
$z | |||
) |
getHeightMapArray | ( | ) |
Implemented in BaseFullChunk.
getHighestBlockAt | ( | $x, | |
$z | |||
) |
int | $x | 0-15 |
int | $z | 0-15 |
getProvider | ( | ) |
Implemented in BaseFullChunk.
getTile | ( | $x, | |
$y, | |||
$z | |||
) |
int | $x | 0-15 |
int | $y | 0-127 |
int | $z | 0-15 |
Implemented in BaseFullChunk.
getTiles | ( | ) |
Implemented in BaseFullChunk.
getX | ( | ) |
Implemented in BaseFullChunk.
getZ | ( | ) |
Implemented in BaseFullChunk.
hasChanged | ( | ) |
Implemented in BaseFullChunk.
isLoaded | ( | ) |
Implemented in BaseFullChunk.
load | ( | $generate = true | ) |
Loads the chunk
bool | $generate | If the chunk does not exist, generate it |
Implemented in BaseFullChunk, and BaseChunk.
removeEntity | ( | Entity | $entity | ) |
Entity | $entity |
Implemented in BaseFullChunk.
removeTile | ( | Tile | $tile | ) |
Tile | $tile |
Implemented in BaseFullChunk.
setBiomeColor | ( | $x, | |
$z, | |||
$R, | |||
$G, | |||
$B | |||
) |
int | $x | 0-15 |
int | $z | 0-15 |
int | $R | 0-255 |
int | $G | 0-255 |
int | $B | 0-255 |
Implemented in BaseFullChunk.
setBiomeId | ( | $x, | |
$z, | |||
$biomeId | |||
) |
int | $x | 0-15 |
int | $z | 0-15 |
int | $biomeId | 0-255 |
Implemented in BaseFullChunk.
setBlock | ( | $x, | |
$y, | |||
$z, | |||
$blockId = null , |
|||
$meta = null |
|||
) |
setBlockData | ( | $x, | |
$y, | |||
$z, | |||
$data | |||
) |
setBlockExtraData | ( | $x, | |
$y, | |||
$z, | |||
$data | |||
) |
int | $x | 0-15 |
int | $y | 0-127 |
int | $z | 0-15 |
int | $data | (16-bit) |
Implemented in BaseFullChunk.
setBlockId | ( | $x, | |
$y, | |||
$z, | |||
$id | |||
) |
setBlockLight | ( | $x, | |
$y, | |||
$z, | |||
$level | |||
) |
setBlockSkyLight | ( | $x, | |
$y, | |||
$z, | |||
$level | |||
) |
setChanged | ( | $changed = true | ) |
bool | $changed |
Implemented in BaseFullChunk.
setHeightMap | ( | $x, | |
$z, | |||
$value | |||
) |
int | $x | 0-15 |
int | $z | 0-15 |
$value | 0-255 |
Implemented in BaseFullChunk.
setProvider | ( | LevelProvider | $provider | ) |
LevelProvider | $provider |
Implemented in BaseFullChunk.
unload | ( | $save = true , |
|
$safe = true |
|||
) |
bool | $save | |
bool | $safe | If false, unload the chunk even if players are nearby |
Implemented in BaseFullChunk.