PocketMine
SimpleChunkManager Class Reference
Inheritance diagram for SimpleChunkManager:
ChunkManager

Public Member Functions

 __construct ($seed)
 
 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)
 
 cleanChunks ()
 
 getSeed ()
 

Protected Attributes

 $chunks = []
 
 $seed
 

Member Function Documentation

getBlockDataAt (   $x,
  $y,
  $z 
)

Gets the raw block metadata

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

Implements ChunkManager.

getBlockIdAt (   $x,
  $y,
  $z 
)

Gets the raw block id.

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

Implements ChunkManager.

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

Implements ChunkManager.

getSeed ( )

Gets the level seed

Returns
int

Implements ChunkManager.

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

Sets the raw block metadata.

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

Implements ChunkManager.

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

Sets the raw block id.

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

Implements ChunkManager.

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

Implements ChunkManager.


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