|
PocketMine
|
Public Member Functions | |
| __construct ($level, $chunkX, $chunkZ, $terrain, array $entityData=null, array $tileData=null) | |
| getBlockId ($x, $y, $z) | |
| setBlockId ($x, $y, $z, $id) | |
| getBlockData ($x, $y, $z) | |
| setBlockData ($x, $y, $z, $data) | |
| getFullBlock ($x, $y, $z) | |
| getBlock ($x, $y, $z, &$blockId, &$meta=null) | |
| setBlock ($x, $y, $z, $blockId=null, $meta=null) | |
| getBlockSkyLight ($x, $y, $z) | |
| setBlockSkyLight ($x, $y, $z, $level) | |
| getBlockLight ($x, $y, $z) | |
| setBlockLight ($x, $y, $z, $level) | |
| getBlockIdColumn ($x, $z) | |
| getBlockDataColumn ($x, $z) | |
| getBlockSkyLightColumn ($x, $z) | |
| getBlockLightColumn ($x, $z) | |
| isLightPopulated () | |
| setLightPopulated ($value=1) | |
| isPopulated () | |
| setPopulated ($value=1) | |
| isGenerated () | |
| setGenerated ($value=1) | |
| toFastBinary () | |
| toBinary ($saveExtra=false) | |
Public Member Functions inherited from BaseFullChunk | |
| 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 | |
| getHighestBlockAt ($x, $z) | |
| toBinary () | |
Static Public Member Functions | |
| static | fromFastBinary ($data, LevelProvider $provider=null) |
| static | fromBinary ($data, LevelProvider $provider=null) |
| static | getEmptyChunk ($chunkX, $chunkZ, LevelProvider $provider=null) |
Static Public Member Functions inherited from BaseFullChunk | |
| static | fromFastBinary ($data, LevelProvider $provider=null) |
Data Fields | |
| const | DATA_LENGTH = 16384 * (2 + 1 + 1 + 1) + 256 + 1024 |
Protected Attributes | |
| $isLightPopulated = false | |
| $isPopulated = false | |
| $isGenerated = false | |
Protected Attributes inherited from BaseFullChunk | |
| $entities = [] | |
| $tiles = [] | |
| $tileList = [] | |
| $biomeColors | |
| $blocks | |
| $data | |
| $skyLight | |
| $blockLight | |
| $heightMap | |
| $NBTtiles | |
| $NBTentities | |
| $extraData = [] | |
| $provider | |
| $x | |
| $z | |
| $hasChanged = false | |
Additional Inherited Members | |
Protected Member Functions inherited from BaseFullChunk | |
| __construct ($provider, $x, $z, $blocks, $data, $skyLight, $blockLight, array $biomeColors=[], array $heightMap=[], array $entities=[], array $tiles=[], array $extraData=[]) | |
| checkOldBiomes ($data) | |
|
static |
|
static |
| 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 |
Implements FullChunk.
| getBlockData | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
| getBlockId | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
| getBlockLight | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
| getBlockSkyLight | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
|
static |
| getFullBlock | ( | $x, | |
| $y, | |||
| $z | |||
| ) |
Gets block and meta in one go
| int | $x | 0-15 |
| int | $y | 0-15 |
| int | $z | 0-15 |
Implements FullChunk.
| isGenerated | ( | ) |
Implements FullChunk.
| isLightPopulated | ( | ) |
Implements FullChunk.
| isPopulated | ( | ) |
Implements FullChunk.
| setBlock | ( | $x, | |
| $y, | |||
| $z, | |||
$blockId = null, |
|||
$meta = null |
|||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
| int | $blockId,if | null, do not change |
| int | $meta | 0-15, if null, do not change |
Implements FullChunk.
| setBlockData | ( | $x, | |
| $y, | |||
| $z, | |||
| $data | |||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
| int | $data | 0-15 |
Implements FullChunk.
| setBlockId | ( | $x, | |
| $y, | |||
| $z, | |||
| $id | |||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
| int | $id | 0-255 |
Implements FullChunk.
| setBlockLight | ( | $x, | |
| $y, | |||
| $z, | |||
| $level | |||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
| int | $level | 0-15 |
Implements FullChunk.
| setBlockSkyLight | ( | $x, | |
| $y, | |||
| $z, | |||
| $level | |||
| ) |
| int | $x | 0-15 |
| int | $y | 0-127 |
| int | $z | 0-15 |
| int | $level | 0-15 |
Implements FullChunk.
| setGenerated | ( | $value = 1 | ) |
| int | $value |
Implements FullChunk.
| setLightPopulated | ( | $value = 1 | ) |
| int | $value |
Implements FullChunk.
| setPopulated | ( | $value = 1 | ) |
| int | $value |
Implements FullChunk.