PocketMine
Chunk Interface Reference
Inheritance diagram for Chunk:
FullChunk BaseChunk Chunk

Public Member Functions

 isSectionEmpty ($fY)
 
 getSection ($fY)
 
 setSection ($fY, ChunkSection $section)
 
 getSections ()
 
- Public Member Functions inherited from FullChunk
 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)
 

Data Fields

const SECTION_COUNT = 8
 

Additional Inherited Members

- Static Public Member Functions inherited from FullChunk
static fromBinary ($data, LevelProvider $provider=null)
 
static fromFastBinary ($data, LevelProvider $provider=null)
 
static getEmptyChunk ($chunkX, $chunkZ, LevelProvider $provider=null)
 

Member Function Documentation

getSection (   $fY)
Parameters
int$fY0-7
Returns
ChunkSection

Implemented in BaseChunk.

getSections ( )
Returns
ChunkSection[]

Implemented in BaseChunk.

isSectionEmpty (   $fY)

Tests whether a section (mini-chunk) is empty

Parameters
$fY0-7, (Y / 16)
Returns
bool

Implemented in BaseChunk.

setSection (   $fY,
ChunkSection  $section 
)
Parameters
int$fY0-7
ChunkSection$section
Returns
boolean

Implemented in BaseChunk.


The documentation for this interface was generated from the following file: