public class SectionedChunkSnapshot extends Object implements ChunkSnapshot
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
biomeId |
protected gnu.trove.map.TIntObjectMap<BlockEntity> |
blockEntities |
protected byte[] |
height |
protected ChunkSection[] |
sections |
protected int |
x |
protected int |
z |
| Constructor and Description |
|---|
SectionedChunkSnapshot(ChunkSection[] sections,
int x,
int z) |
SectionedChunkSnapshot(ChunkSection[] sections,
int x,
int z,
byte[] biomeId,
byte[] height) |
| Modifier and Type | Method and Description |
|---|---|
Biome |
getBiome(int x,
int z) |
BlockSnapshot |
getBlock(int x,
int y,
int z) |
byte |
getBlockLight(int x,
int y,
int z) |
int |
getHighestLayer(int x,
int z) |
byte |
getSkyLight(int x,
int y,
int z) |
int |
getX() |
int |
getZ() |
protected final ChunkSection[] sections
protected final int x
protected final int z
protected final byte[] biomeId
protected final byte[] height
protected final gnu.trove.map.TIntObjectMap<BlockEntity> blockEntities
public SectionedChunkSnapshot(ChunkSection[] sections, int x, int z)
public SectionedChunkSnapshot(ChunkSection[] sections, int x, int z, byte[] biomeId, byte[] height)
public int getX()
getX in interface ChunkSnapshotpublic int getZ()
getZ in interface ChunkSnapshotpublic BlockSnapshot getBlock(int x, int y, int z)
getBlock in interface ChunkSnapshot@Nonnull public Biome getBiome(int x, int z)
getBiome in interface ChunkSnapshotpublic int getHighestLayer(int x,
int z)
getHighestLayer in interface ChunkSnapshotpublic byte getSkyLight(int x,
int y,
int z)
getSkyLight in interface ChunkSnapshotpublic byte getBlockLight(int x,
int y,
int z)
getBlockLight in interface ChunkSnapshotCopyright © 2017–2018 NukkitX. All rights reserved.