public interface ChunkSnapshot
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)
Modifier and Type | Method | Description |
---|---|---|
boolean |
contains(BlockData block) |
Tests if this snapshot contains the specified block.
|
Biome |
getBiome(int x,
int z) |
Get biome at given coordinates
|
BlockData |
getBlockData(int x,
int y,
int z) |
Get block data 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 |
getBlockSkyLight(int x,
int y,
int z) |
Get sky light level for block at corresponding coordinate in the chunk
|
Material |
getBlockType(int x,
int y,
int z) |
Get block type for block at corresponding coordinate in the chunk
|
long |
getCaptureFullTime() |
Get world full time when chunk snapshot was captured
|
int |
getData(int x,
int y,
int z) |
Deprecated.
Magic value
|
int |
getHighestBlockYAt(int x,
int z) |
Gets the highest non-air coordinate at the given coordinates
|
double |
getRawBiomeTemperature(int x,
int z) |
Get raw biome temperature (0.0-1.0) at given coordinate
|
String |
getWorldName() |
Gets name of the world containing this chunk
|
int |
getX() |
Gets the X-coordinate of this chunk
|
int |
getZ() |
Gets the Z-coordinate of this chunk
|
boolean |
isSectionEmpty(int sy) |
Test if section is empty
|
int getX()
int getZ()
@NotNull String getWorldName()
@NotNull Material getBlockType(int x, int y, int z)
x
- 0-15y
- 0-255z
- 0-15@NotNull BlockData getBlockData(int x, int y, int z)
x
- 0-15y
- 0-255z
- 0-15@Deprecated int getData(int x, int y, int z)
x
- 0-15y
- 0-255z
- 0-15int getBlockSkyLight(int x, int y, int z)
x
- 0-15y
- 0-255z
- 0-15int getBlockEmittedLight(int x, int y, int z)
x
- 0-15y
- 0-255z
- 0-15int getHighestBlockYAt(int x, int z)
x
- X-coordinate of the blocks (0-15)z
- Z-coordinate of the blocks (0-15)@NotNull Biome getBiome(int x, int z)
x
- X-coordinate (0-15)z
- Z-coordinate (0-15)double getRawBiomeTemperature(int x, int z)
x
- X-coordinate (0-15)z
- Z-coordinate (0-15)long getCaptureFullTime()
boolean isSectionEmpty(int sy)
sy
- - section Y coordinate (block Y / 16, 0-255)boolean contains(@NotNull BlockData block)
block
- block to testCopyright © 2019. All rights reserved.