Genisys  Genisys API 1.9.3
A server software for Minecraft: Pocket Edition with many features
SimpleChunkManager Class Reference
Inheritance diagram for SimpleChunkManager:
[legend]
Collaboration diagram for SimpleChunkManager:
[legend]

Public Member Functions

 __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 ()
 
- Public Member Functions inherited from ChunkManager
 updateBlockLight (int $x, int $y, int $z)
 

Protected Attributes

 $chunks = []
 
 $seed
 
 $waterHeight = 0
 

Member Function Documentation

getBlockDataAt ( int  $x,
int  $y,
int  $z 
)

Gets the raw block metadata

Parameters
int$x
int$y
int$z
Returns
int 0-15

Implements ChunkManager.

getBlockIdAt ( int  $x,
int  $y,
int  $z 
)

Gets the raw block id.

Parameters
int$x
int$y
int$z
Returns
int 0-255

Implements ChunkManager.

getBlockLightAt ( int  $x,
int  $y,
int  $z 
)

Gets the raw block light level

Parameters
int$x
int$y
int$z
Returns
int 0-15

Implements ChunkManager.

getChunk ( int  $chunkX,
int  $chunkZ 
)
Parameters
int$chunkX
int$chunkZ
Returns
Chunk|null

Implements ChunkManager.

getSeed ( )

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$data0-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$id0-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$level0-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: