|
PocketMine
|
Public Member Functions | |
| initChunk () | |
| getX () | |
| getZ () | |
| setX ($x) | |
| setZ ($z) | |
| getLevel () | |
| getProvider () | |
| setProvider (LevelProvider $provider) | |
| getBiomeId ($x, $z) | |
| setBiomeId ($x, $z, $biomeId) | |
| getBiomeColor ($x, $z) | |
| setBiomeColor ($x, $z, $R, $G, $B) | |
| getHeightMap ($x, $z) | |
| setHeightMap ($x, $z, $value) | |
| recalculateHeightMap () | |
| getBlockExtraData ($x, $y, $z) | |
| setBlockExtraData ($x, $y, $z, $data) | |
| populateSkyLight () | |
| getHighestBlockAt ($x, $z, $cache=true) | |
| addEntity (Entity $entity) | |
| removeEntity (Entity $entity) | |
| addTile (Tile $tile) | |
| removeTile (Tile $tile) | |
| getEntities () | |
| getTiles () | |
| getBlockExtraDataArray () | |
| getTile ($x, $y, $z) | |
| isLoaded () | |
| load ($generate=true) | |
| unload ($save=true, $safe=true) | |
| getBlockIdArray () | |
| getBlockDataArray () | |
| getBlockSkyLightArray () | |
| getBlockLightArray () | |
| getBiomeIdArray () | |
| getBiomeColorArray () | |
| getHeightMapArray () | |
| hasChanged () | |
| setChanged ($changed=true) | |
| toFastBinary () | |
| isLightPopulated () | |
| setLightPopulated ($value=1) | |
Public Member Functions inherited from FullChunk | |
| 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) | |
| getBlockSkyLight ($x, $y, $z) | |
| setBlockSkyLight ($x, $y, $z, $level) | |
| getBlockLight ($x, $y, $z) | |
| setBlockLight ($x, $y, $z, $level) | |
| getHighestBlockAt ($x, $z) | |
| getBlockIdColumn ($x, $z) | |
| getBlockDataColumn ($x, $z) | |
| getBlockSkyLightColumn ($x, $z) | |
| getBlockLightColumn ($x, $z) | |
| isPopulated () | |
| setPopulated ($value=1) | |
| isGenerated () | |
| setGenerated ($value=1) | |
| toBinary () | |
Static Public Member Functions | |
| static | fromFastBinary ($data, LevelProvider $provider=null) |
Static Public Member Functions inherited from FullChunk | |
| static | fromBinary ($data, LevelProvider $provider=null) |
| static | getEmptyChunk ($chunkX, $chunkZ, LevelProvider $provider=null) |
Protected Member Functions | |
| __construct ($provider, $x, $z, $blocks, $data, $skyLight, $blockLight, array $biomeColors=[], array $heightMap=[], array $entities=[], array $tiles=[], array $extraData=[]) | |
| checkOldBiomes ($data) | |
Protected Attributes | |
| $entities = [] | |
| $tiles = [] | |
| $tileList = [] | |
| $biomeColors | |
| $blocks | |
| $data | |
| $skyLight | |
| $blockLight | |
| $heightMap | |
| $NBTtiles | |
| $NBTentities | |
| $extraData = [] | |
| $provider | |
| $x | |
| $z | |
| $hasChanged = false | |
|
protected |
| LevelProvider | $provider | |
| int | $x | |
| int | $z | |
| string | $blocks | |
| string | $data | |
| string | $skyLight | |
| string | $blockLight | |
| int[] | $biomeColors | |
| int[] | $heightMap | |
| Compound[] | $entities | |
| Compound[] | $tiles |
|
static |
| getBiomeColor | ( | $x, | |
| $z | |||
| ) |
| getBiomeColorArray | ( | ) |
Implements FullChunk.
| getBiomeId | ( | $x, | |
| $z | |||
| ) |
| getBiomeIdArray | ( | ) |
Implements FullChunk.
| getBlockExtraData | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
| getEntities | ( | ) |
Implements FullChunk.
| getHeightMap | ( | $x, | |
| $z | |||
| ) |
| getHeightMapArray | ( | ) |
Implements FullChunk.
| getLevel | ( | ) |
| getProvider | ( | ) |
Implements FullChunk.
| getTile | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
Implements FullChunk.
| getTiles | ( | ) |
Implements FullChunk.
| getX | ( | ) |
Implements FullChunk.
| getZ | ( | ) |
Implements FullChunk.
| hasChanged | ( | ) |
Implements FullChunk.
| isLoaded | ( | ) |
Implements FullChunk.
| load | ( | $generate = true | ) |
Loads the chunk
| bool | $generate | If the chunk does not exist, generate it |
Implements FullChunk.
| 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 |
Implements FullChunk.
| setBiomeId | ( | $x, | |
| $z, | |||
| $biomeId | |||
| ) |
| int | $x | 0-15 |
| int | $z | 0-15 |
| int | $biomeId | 0-255 |
Implements FullChunk.
| setBlockExtraData | ( | $x, | |
| $y, | |||
| $z, | |||
| $data | |||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
| int | $data | (16-bit) |
Implements FullChunk.
| setChanged | ( | $changed = true | ) |
| bool | $changed |
Implements FullChunk.
| setHeightMap | ( | $x, | |
| $z, | |||
| $value | |||
| ) |
| int | $x | 0-15 |
| int | $z | 0-15 |
| $value | 0-255 |
Implements FullChunk.
| setProvider | ( | LevelProvider | $provider | ) |
| LevelProvider | $provider |
Implements FullChunk.
| unload | ( | $save = true, |
|
$safe = true |
|||
| ) |
| bool | $save | |
| bool | $safe | If false, unload the chunk even if players are nearby |
Implements FullChunk.