public interface ChunkSnapshot
目的是允许清洁高效地复制一个区块的数据,然后在另一个线程(例如,地图渲染)中处理.
限定符和类型 | 方法和说明 |
---|---|
Biome |
getBiome(int x,
int z)
获取指定坐标的生物群系.
|
int |
getBlockData(int x,
int y,
int z)
已过时。
不安全的参数
|
int |
getBlockEmittedLight(int x,
int y,
int z)
获取区块中对应坐标方块的发光亮度等级.
|
int |
getBlockSkyLight(int x,
int y,
int z)
获取区块中对应坐标方块的天空亮度等级.
|
Material |
getBlockType(int x,
int y,
int z)
获取区块中对应坐标方块的方块类型.
|
int |
getBlockTypeId(int x,
int y,
int z)
已过时。
不安全的参数
|
long |
getCaptureFullTime()
抓取区块快照时获取世界的完整时间.
|
int |
getHighestBlockYAt(int x,
int z)
获取指定坐标最高非空气方块的Y坐标.
|
double |
getRawBiomeRainfall(int x,
int z)
已过时。
在当前的Minecraft版本(1.12)中不存在这个区块属性
|
double |
getRawBiomeTemperature(int x,
int z)
获取指定坐标原始生物群系的温度(范围为0.0到1.0).
|
java.lang.String |
getWorldName()
获取指定区块所在世界的名称.
|
int |
getX()
获取指定区块的X坐标.
|
int |
getZ()
获取指定区块的Z坐标.
|
boolean |
isSectionEmpty(int sy)
测试区块是否为空.
|
int getX()
int getZ()
java.lang.String getWorldName()
Material getBlockType(int x, int y, int z)
原文:Get block type for block at corresponding coordinate in the chunk
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坐标z
- Z坐标double getRawBiomeTemperature(int x, int z)
x
- X坐标z
- Z坐标@Deprecated double getRawBiomeRainfall(int x, int z)
x
- X坐标z
- Z坐标long getCaptureFullTime()
boolean isSectionEmpty(int sy)
sy
- -区块的Y坐标(方块Y坐标整除16)