PocketMine
ChunkManager Interface Reference
Inheritance diagram for ChunkManager:
Level SimpleChunkManager

Public Member Functions

 getBlockIdAt ($x, $y, $z)
 
 setBlockIdAt ($x, $y, $z, $id)
 
 getBlockDataAt ($x, $y, $z)
 
 setBlockDataAt ($x, $y, $z, $data)
 
 getChunk ($chunkX, $chunkZ)
 
 setChunk ($chunkX, $chunkZ, FullChunk $chunk=null)
 
 getSeed ()
 

Member Function Documentation

getBlockDataAt (   $x,
  $y,
  $z 
)

Gets the raw block metadata

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

Implemented in Level, and SimpleChunkManager.

getBlockIdAt (   $x,
  $y,
  $z 
)

Gets the raw block id.

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

Implemented in Level, and SimpleChunkManager.

getChunk (   $chunkX,
  $chunkZ 
)
Parameters
int$chunkX
int$chunkZ
Returns
FullChunk

Implemented in SimpleChunkManager.

getSeed ( )

Gets the level seed

Returns
int

Implemented in Level, and SimpleChunkManager.

setBlockDataAt (   $x,
  $y,
  $z,
  $data 
)

Sets the raw block metadata.

Parameters
int$x
int$y
int$z
int$data0-15

Implemented in Level, and SimpleChunkManager.

setBlockIdAt (   $x,
  $y,
  $z,
  $id 
)

Sets the raw block id.

Parameters
int$x
int$y
int$z
int$id0-255

Implemented in Level, and SimpleChunkManager.

setChunk (   $chunkX,
  $chunkZ,
FullChunk  $chunk = null 
)
Parameters
int$chunkX
int$chunkZ
FullChunk$chunk

Implemented in SimpleChunkManager.


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