public class SectionedChunk extends SectionedChunkSnapshot implements Chunk, FullChunkDataPacketCreator
biomeId, blockEntities, height, sections, x, z| Constructor and Description |
|---|
SectionedChunk(ChunkSection[] sections,
int x,
int z,
Level level) |
SectionedChunk(ChunkSection[] sections,
int x,
int z,
Level level,
byte[] biomeId,
byte[] height) |
SectionedChunk(int x,
int z,
Level level) |
| Modifier and Type | Method and Description |
|---|---|
FullChunkDataPacket |
createFullChunkDataPacket() |
Block |
getBlock(int x,
int y,
int z) |
Level |
getLevel() |
ChunkSection |
getOrCreateSection(int y) |
Optional<ChunkSection> |
getSection(int y) |
void |
recalculateHeightMap() |
void |
recalculateLight() |
void |
setBiome(int x,
int z,
Biome id) |
Block |
setBlock(int x,
int y,
int z,
BlockState state) |
Block |
setBlock(int x,
int y,
int z,
BlockState state,
boolean shouldRecalculateLight) |
ChunkSnapshot |
toSnapshot() |
getBiome, getBlockLight, getHighestLayer, getSkyLight, getX, getZclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlockLight, getHighestLayer, getSkyLight, getX, getZpublic SectionedChunk(int x,
int z,
Level level)
public SectionedChunk(ChunkSection[] sections, int x, int z, Level level)
public SectionedChunk(ChunkSection[] sections, int x, int z, Level level, byte[] biomeId, byte[] height)
public Block getBlock(int x, int y, int z)
getBlock in interface ChunkgetBlock in interface ChunkSnapshotgetBlock in class SectionedChunkSnapshotpublic Block setBlock(int x, int y, int z, BlockState state)
public Block setBlock(int x, int y, int z, BlockState state, boolean shouldRecalculateLight)
public ChunkSection getOrCreateSection(int y)
public Optional<ChunkSection> getSection(int y)
public ChunkSnapshot toSnapshot()
toSnapshot in interface Chunkpublic void recalculateLight()
public void recalculateHeightMap()
public FullChunkDataPacket createFullChunkDataPacket()
createFullChunkDataPacket in interface FullChunkDataPacketCreatorCopyright © 2017–2018 NukkitX. All rights reserved.