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(@NotNull BlockData block) |
Tests if this snapshot contains the specified block.
|
@NotNull Biome |
getBiome(int x,
int z) |
Deprecated.
biomes are now 3-dimensional
|
@NotNull Biome |
getBiome(int x,
int y,
int z) |
Get biome at given coordinates
|
@NotNull 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
|
@NotNull 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) |
Deprecated.
biomes are now 3-dimensional
|
double |
getRawBiomeTemperature(int x,
int y,
int z) |
Get raw biome temperature at given coordinates
|
@NotNull 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 @NotNull String getWorldName()
@NotNull @NotNull Material getBlockType(int x, int y, int z)
x
- 0-15y
- 0-255z
- 0-15@NotNull @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 @Deprecated @NotNull Biome getBiome(int x, int z)
x
- X-coordinate (0-15)z
- Z-coordinate (0-15)@NotNull @NotNull Biome getBiome(int x, int y, int z)
x
- X-coordinate (0-15)y
- Y-coordinate (0-255)z
- Z-coordinate (0-15)@Deprecated double getRawBiomeTemperature(int x, int z)
x
- X-coordinate (0-15)z
- Z-coordinate (0-15)double getRawBiomeTemperature(int x, int y, int z)
x
- X-coordinate (0-15)y
- Y-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 @NotNull BlockData block)
block
- block to testCopyright © 2020. All rights reserved.