Represents a static, thread-safe snapshot of chunk of blocks Purpose is to allow clean, efficient copy of a chunk data to be made, and then handed off for processing in another thread (e.g.
More...
|
| int | getX () |
| | Gets the X-coordinate of this chunk.
|
| |
| int | getZ () |
| | Gets the Z-coordinate of this chunk.
|
| |
| String | getWorldName () |
| | Gets name of the world containing this chunk.
|
| |
| int | getBlockTypeId (int x, int y, int z) |
| | Get block type for block at corresponding coordinate in the chunk.
|
| |
| int | getBlockData (int x, int y, int z) |
| | Get block data for block at corresponding coordinate in the chunk.
|
| |
| int | getBlockSkyLight (int x, int y, int z) |
| | Get sky light level for block at corresponding coordinate in the chunk.
|
| |
| int | getBlockEmittedLight (int x, int y, int z) |
| | Get light level emitted by block at corresponding coordinate in the chunk.
|
| |
| int | getHighestBlockYAt (int x, int z) |
| | Gets the highest non-air coordinate at the given coordinates.
|
| |
| Biome | getBiome (int x, int z) |
| | Get biome at given coordinates.
|
| |
| double | getRawBiomeTemperature (int x, int z) |
| | Get raw biome temperature (0.0-1.0) at given coordinate.
|
| |
| double | getRawBiomeRainfall (int x, int z) |
| | Get raw biome rainfall (0.0-1.0) at given coordinate.
|
| |
| long | getCaptureFullTime () |
| | Get world full time when chunk snapshot was captured.
|
| |
| boolean | isSectionEmpty (int sy) |
| | Test if section is empty.
|
| |
Represents a static, thread-safe snapshot of chunk of blocks Purpose is to allow clean, efficient copy of a chunk data to be made, and then handed off for processing in another thread (e.g.
map rendering)
Definition at line 9 of file ChunkSnapshot.java.
| Biome org.bukkit.ChunkSnapshot.getBiome |
( |
int |
x, |
|
|
int |
z |
|
) |
| |
Get biome at given coordinates.
- Parameters
-
| x | X-coordinate |
| z | Z-coordinate |
- Returns
- Biome at given coordinate
| int org.bukkit.ChunkSnapshot.getBlockData |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
Get block data for block at corresponding coordinate in the chunk.
- Parameters
-
- Returns
- 0-15
| int org.bukkit.ChunkSnapshot.getBlockEmittedLight |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
Get light level emitted by block at corresponding coordinate in the chunk.
- Parameters
-
- Returns
- 0-15
| int org.bukkit.ChunkSnapshot.getBlockSkyLight |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
Get sky light level for block at corresponding coordinate in the chunk.
- Parameters
-
- Returns
- 0-15
| int org.bukkit.ChunkSnapshot.getBlockTypeId |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
Get block type for block at corresponding coordinate in the chunk.
- Parameters
-
- Returns
- 0-255
| long org.bukkit.ChunkSnapshot.getCaptureFullTime |
( |
| ) |
|
Get world full time when chunk snapshot was captured.
- Returns
- time in ticks
| int org.bukkit.ChunkSnapshot.getHighestBlockYAt |
( |
int |
x, |
|
|
int |
z |
|
) |
| |
Gets the highest non-air coordinate at the given coordinates.
- Parameters
-
| x | X-coordinate of the blocks |
| z | Z-coordinate of the blocks |
- Returns
- Y-coordinate of the highest non-air block
| double org.bukkit.ChunkSnapshot.getRawBiomeRainfall |
( |
int |
x, |
|
|
int |
z |
|
) |
| |
Get raw biome rainfall (0.0-1.0) at given coordinate.
- Parameters
-
| x | X-coordinate |
| z | Z-coordinate |
- Returns
- rainfall at given coordinate
| double org.bukkit.ChunkSnapshot.getRawBiomeTemperature |
( |
int |
x, |
|
|
int |
z |
|
) |
| |
Get raw biome temperature (0.0-1.0) at given coordinate.
- Parameters
-
| x | X-coordinate |
| z | Z-coordinate |
- Returns
- temperature at given coordinate
| String org.bukkit.ChunkSnapshot.getWorldName |
( |
| ) |
|
Gets name of the world containing this chunk.
- Returns
- Parent World Name
| int org.bukkit.ChunkSnapshot.getX |
( |
| ) |
|
Gets the X-coordinate of this chunk.
- Returns
- X-coordinate
| int org.bukkit.ChunkSnapshot.getZ |
( |
| ) |
|
Gets the Z-coordinate of this chunk.
- Returns
- Z-coordinate
| boolean org.bukkit.ChunkSnapshot.isSectionEmpty |
( |
int |
sy | ) |
|
Test if section is empty.
- Parameters
-
| sy | - section Y coordinate (block Y / 16) |
- Returns
- true if empty, false if not
The documentation for this interface was generated from the following file: