PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\level\format\ChunkSection Interface Reference
+ Inheritance diagram for pocketmine\level\format\ChunkSection:
+ Collaboration diagram for pocketmine\level\format\ChunkSection:

Public Member Functions

 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 ()
 

Detailed Description

Definition at line 24 of file ChunkSection.php.

Member Function Documentation

pocketmine\level\format\ChunkSection::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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockData (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-15

Implemented in pocketmine\level\format\generic\EmptyChunkSection, and pocketmine\level\format\anvil\ChunkSection.

pocketmine\level\format\ChunkSection::getBlockDataColumn (   $x,
  $z 
)

Returns a data column from low y to high y

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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockId (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-255

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockIdColumn (   $x,
  $z 
)

Returns a id column from low y to high y

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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockLight (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-15

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockLightColumn (   $x,
  $z 
)

Returns a data column from low y to high y

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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockSkyLight (   $x,
  $y,
  $z 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
Returns
int 0-15

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getBlockSkyLightColumn (   $x,
  $z 
)

Returns a skylight column from low y to high y

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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::getY ( )
pocketmine\level\format\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

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::setBlockData (   $x,
  $y,
  $z,
  $data 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$data0-15

Implemented in pocketmine\level\format\generic\EmptyChunkSection, and pocketmine\level\format\anvil\ChunkSection.

pocketmine\level\format\ChunkSection::setBlockId (   $x,
  $y,
  $z,
  $id 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$id0-255

Implemented in pocketmine\level\format\generic\EmptyChunkSection, and pocketmine\level\format\anvil\ChunkSection.

pocketmine\level\format\ChunkSection::setBlockLight (   $x,
  $y,
  $z,
  $level 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$level0-15

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.

pocketmine\level\format\ChunkSection::setBlockSkyLight (   $x,
  $y,
  $z,
  $level 
)
Parameters
int$x0-15
int$y0-15
int$z0-15
int$level0-15

Implemented in pocketmine\level\format\anvil\ChunkSection, and pocketmine\level\format\generic\EmptyChunkSection.


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