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

Public Member Functions

 __construct ($y)
 
 getY ()
 
 getBlockId ($x, $y, $z)
 
 getBlockIdColumn ($x, $z)
 
 getBlockDataColumn ($x, $z)
 
 getBlockSkyLightColumn ($x, $z)
 
 getBlockLightColumn ($x, $z)
 
 getFullBlock ($x, $y, $z)
 
 getBlock ($x, $y, $z, &$id=null, &$meta=null)
 
 setBlock ($x, $y, $z, $id=null, $meta=null)
 
 getIdArray ()
 
 getDataArray ()
 
 getSkyLightArray ()
 
 getLightArray ()
 
 setBlockId ($x, $y, $z, $id)
 
 getBlockData ($x, $y, $z)
 
 setBlockData ($x, $y, $z, $data)
 
 getBlockLight ($x, $y, $z)
 
 setBlockLight ($x, $y, $z, $level)
 
 getBlockSkyLight ($x, $y, $z)
 
 setBlockSkyLight ($x, $y, $z, $level)
 

Detailed Description

Stub used to detect empty chunks

Definition at line 30 of file EmptyChunkSection.php.

Member Function Documentation

pocketmine\level\format\generic\EmptyChunkSection::getBlock (   $x,
  $y,
  $z,
$blockId = null,
$meta = null 
)
final

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 66 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 95 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::getBlockDataColumn (   $x,
  $z 
)
final

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 50 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 42 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::getBlockIdColumn (   $x,
  $z 
)
final

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 46 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 103 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::getBlockLightColumn (   $x,
  $z 
)
final

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 58 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 111 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::getBlockSkyLightColumn (   $x,
  $z 
)
final

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 54 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::getFullBlock (   $x,
  $y,
  $z 
)
final

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 62 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::getY ( )
final
Returns
int

Implements pocketmine\level\format\ChunkSection.

Definition at line 38 of file EmptyChunkSection.php.

pocketmine\level\format\generic\EmptyChunkSection::setBlock (   $x,
  $y,
  $z,
  $blockId = null,
  $meta = null 
)
final
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 71 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 99 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 91 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 107 of file EmptyChunkSection.php.

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

Implements pocketmine\level\format\ChunkSection.

Definition at line 115 of file EmptyChunkSection.php.


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