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 and Description |
---|---|
Biome |
getBiome(int x,
int z)
Get biome at given coordinates
|
int |
getBlockData(int x,
int y,
int z)
Deprecated.
Magic value
|
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
|
int |
getBlockTypeId(int x,
int y,
int z)
Deprecated.
Magic value
|
long |
getCaptureFullTime()
Get world full time when chunk snapshot was captured
|
int |
getHighestBlockYAt(int x,
int z)
Gets the highest non-air coordinate at the given coordinates
|
double |
getRawBiomeRainfall(int x,
int z)
Deprecated.
this is not a chunk property in current Minecraft versions
|
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()
String getWorldName()
Material getBlockType(int x, int y, int z)
x
- 0-15y
- 0-127z
- 0-15@Deprecated int getBlockTypeId(int x, int y, int z)
x
- 0-15y
- 0-127z
- 0-15@Deprecated int getBlockData(int x, int y, int z)
x
- 0-15y
- 0-127z
- 0-15int getBlockSkyLight(int x, int y, int z)
x
- 0-15y
- 0-127z
- 0-15int getBlockEmittedLight(int x, int y, int z)
x
- 0-15y
- 0-127z
- 0-15int getHighestBlockYAt(int x, int z)
x
- X-coordinate of the blocksz
- Z-coordinate of the blocksBiome getBiome(int x, int z)
x
- X-coordinatez
- Z-coordinatedouble getRawBiomeTemperature(int x, int z)
x
- X-coordinatez
- Z-coordinate@Deprecated double getRawBiomeRainfall(int x, int z)
x
- X-coordinatez
- Z-coordinatelong getCaptureFullTime()
boolean isSectionEmpty(int sy)
sy
- - section Y coordinate (block Y / 16)Copyright © 2021. All rights reserved.