PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\level\format\anvil\ChunkSection Class Reference
+ Inheritance diagram for pocketmine\level\format\anvil\ChunkSection:
+ Collaboration diagram for pocketmine\level\format\anvil\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 ()
 

Detailed Description

Definition at line 26 of file anvil/ChunkSection.php.

Member Function Documentation

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 73 of file anvil/ChunkSection.php.

References pocketmine\level\format\anvil\ChunkSection\getFullBlock().

+ Here is the call graph for this function:

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 54 of file anvil/ChunkSection.php.

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

Definition at line 168 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 46 of file anvil/ChunkSection.php.

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

Definition at line 158 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 139 of file anvil/ChunkSection.php.

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

Definition at line 200 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 120 of file anvil/ChunkSection.php.

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

Definition at line 184 of file anvil/ChunkSection.php.

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

Definition at line 79 of file anvil/ChunkSection.php.

Referenced by pocketmine\level\format\anvil\ChunkSection\getBlock().

+ Here is the caller graph for this function:

pocketmine\level\format\anvil\ChunkSection::getY ( )
Returns
int

Implements pocketmine\level\format\ChunkSection.

Definition at line 42 of file anvil/ChunkSection.php.

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

Definition at line 88 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 63 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 50 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 148 of file anvil/ChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 129 of file anvil/ChunkSection.php.


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