|
| __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 () |
|
getBlock |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
& |
$blockId, |
|
|
& |
$meta = null |
|
) |
| |
Modifies $blockId and $meta
- Deprecated:
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
int | &$blockId | |
int | &$meta | |
Implements ChunkSection.
getBlockData |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
- Returns
- int 0-15
Implements ChunkSection.
getBlockDataColumn |
( |
|
$x, |
|
|
|
$z |
|
) |
| |
Returns a data column from low y to high y
- Parameters
-
- Returns
- string[8]
Implements ChunkSection.
getBlockId |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
- Returns
- int 0-255
Implements ChunkSection.
getBlockIdColumn |
( |
|
$x, |
|
|
|
$z |
|
) |
| |
Returns a id column from low y to high y
- Parameters
-
- Returns
- string[16]
Implements ChunkSection.
getBlockLight |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
- Returns
- int 0-15
Implements ChunkSection.
getBlockLightColumn |
( |
|
$x, |
|
|
|
$z |
|
) |
| |
Returns a data column from low y to high y
- Parameters
-
- Returns
- string[8]
Implements ChunkSection.
getBlockSkyLight |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
- Returns
- int 0-15
Implements ChunkSection.
getBlockSkyLightColumn |
( |
|
$x, |
|
|
|
$z |
|
) |
| |
Returns a skylight column from low y to high y
- Parameters
-
- Returns
- string[8]
Implements ChunkSection.
getFullBlock |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z |
|
) |
| |
Gets block and meta in one go
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
- Returns
- int bitmap, (id << 4) | data
Implements ChunkSection.
setBlock |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
|
$blockId = null , |
|
|
|
$meta = null |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
int | $blockId,if | null, do not change |
int | $meta | 0-15, if null, do not change |
- Returns
- bool
Implements ChunkSection.
setBlockData |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
|
$data |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
int | $data | 0-15 |
Implements ChunkSection.
setBlockId |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
|
$id |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
int | $id | 0-255 |
Implements ChunkSection.
setBlockLight |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
|
$level |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
int | $level | 0-15 |
Implements ChunkSection.
setBlockSkyLight |
( |
|
$x, |
|
|
|
$y, |
|
|
|
$z, |
|
|
|
$level |
|
) |
| |
- Parameters
-
int | $x | 0-15 |
int | $y | 0-15 |
int | $z | 0-15 |
int | $level | 0-15 |
Implements ChunkSection.
The documentation for this class was generated from the following file:
- /Users/Kids/Desktop/Doxygen/pocketmine/level/format/anvil/ChunkSection.php