PocketMine
ChunkSection Class Reference
Inheritance diagram for ChunkSection:
ChunkSection

Public Member Functions

 __construct (Compound $nbt)
 
 getY ()
 
 getBlockId ($x, $y, $z)
 
 setBlockId ($x, $y, $z, $id)
 
 getBlockData ($x, $y, $z)
 
 setBlockData ($x, $y, $z, $data)
 
 getBlock ($x, $y, $z, &$blockId, &$meta=null)
 
 getFullBlock ($x, $y, $z)
 
 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)
 
 getIdArray ()
 
 getDataArray ()
 
 getSkyLightArray ()
 
 getLightArray ()
 

Member Function Documentation

getBlock (   $x,
  $y,
  $z,
$blockId,
$meta = null 
)

Modifies $blockId and $meta

Deprecated:
Parameters
int$x0-15
int$y0-15
int$z0-15
int&$blockId
int&$meta

Implements ChunkSection.

getBlockData (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-15

Implements ChunkSection.

getBlockDataColumn (   $x,
  $z 
)

Returns a data column from low y to high y

Parameters
int$x0-15
int$z0-15
Returns
string[8]

Implements ChunkSection.

getBlockId (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-255

Implements ChunkSection.

getBlockIdColumn (   $x,
  $z 
)

Returns a id column from low y to high y

Parameters
int$x0-15
int$z0-15
Returns
string[16]

Implements ChunkSection.

getBlockLight (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-15

Implements ChunkSection.

getBlockLightColumn (   $x,
  $z 
)

Returns a data column from low y to high y

Parameters
int$x0-15
int$z0-15
Returns
string[8]

Implements ChunkSection.

getBlockSkyLight (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-15

Implements ChunkSection.

getBlockSkyLightColumn (   $x,
  $z 
)

Returns a skylight column from low y to high y

Parameters
int$x0-15
int$z0-15
Returns
string[8]

Implements ChunkSection.

getFullBlock (   $x,
  $y,
  $z 
)

Gets block and meta in one go

Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int bitmap, (id << 4) | data

Implements ChunkSection.

getY ( )
Returns
int

Implements ChunkSection.

setBlock (   $x,
  $y,
  $z,
  $blockId = null,
  $meta = null 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$blockId,ifnull, do not change
int$meta0-15, if null, do not change
Returns
bool

Implements ChunkSection.

setBlockData (   $x,
  $y,
  $z,
  $data 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$data0-15

Implements ChunkSection.

setBlockId (   $x,
  $y,
  $z,
  $id 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$id0-255

Implements ChunkSection.

setBlockLight (   $x,
  $y,
  $z,
  $level 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$level0-15

Implements ChunkSection.

setBlockSkyLight (   $x,
  $y,
  $z,
  $level 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$level0-15

Implements ChunkSection.


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