public class CloudChunkSection extends Object implements org.cloudburstmc.api.level.chunk.ChunkSection
| Modifier and Type | Field and Description |
|---|---|
static int |
CHUNK_SECTION_VERSION |
static int |
SIZE |
| Constructor and Description |
|---|
CloudChunkSection() |
CloudChunkSection(BlockStorage[] blockStorage) |
CloudChunkSection(BlockStorage[] storage,
byte[] blockLight,
byte[] skyLight) |
| Modifier and Type | Method and Description |
|---|---|
static int |
blockIndex(int x,
int y,
int z) |
static void |
checkBounds(int x,
int y,
int z) |
CloudChunkSection |
copy() |
org.cloudburstmc.api.block.BlockState |
getBlock(int x,
int y,
int z,
int layer) |
byte |
getBlockLight(int x,
int y,
int z) |
NibbleArray |
getBlockLightArray() |
BlockStorage[] |
getBlockStorageArray() |
byte |
getSkyLight(int x,
int y,
int z) |
NibbleArray |
getSkyLightArray() |
boolean |
isEmpty() |
void |
setBlock(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState blockState) |
void |
setBlockLight(int x,
int y,
int z,
byte val) |
void |
setSkyLight(int x,
int y,
int z,
byte val) |
void |
writeToNetwork(io.netty.buffer.ByteBuf buffer) |
public static final int CHUNK_SECTION_VERSION
public static final int SIZE
public CloudChunkSection()
public CloudChunkSection(BlockStorage[] blockStorage)
public CloudChunkSection(BlockStorage[] storage, byte[] blockLight, byte[] skyLight)
public static int blockIndex(int x,
int y,
int z)
public static void checkBounds(int x,
int y,
int z)
public org.cloudburstmc.api.block.BlockState getBlock(int x,
int y,
int z,
int layer)
getBlock in interface org.cloudburstmc.api.level.chunk.ChunkSectionpublic void setBlock(int x,
int y,
int z,
int layer,
org.cloudburstmc.api.block.BlockState blockState)
setBlock in interface org.cloudburstmc.api.level.chunk.ChunkSectionpublic byte getSkyLight(int x,
int y,
int z)
getSkyLight in interface org.cloudburstmc.api.level.chunk.ChunkSectionpublic void setSkyLight(int x,
int y,
int z,
byte val)
setSkyLight in interface org.cloudburstmc.api.level.chunk.ChunkSectionpublic byte getBlockLight(int x,
int y,
int z)
getBlockLight in interface org.cloudburstmc.api.level.chunk.ChunkSectionpublic void setBlockLight(int x,
int y,
int z,
byte val)
setBlockLight in interface org.cloudburstmc.api.level.chunk.ChunkSectionpublic void writeToNetwork(io.netty.buffer.ByteBuf buffer)
public NibbleArray getSkyLightArray()
public NibbleArray getBlockLightArray()
public BlockStorage[] getBlockStorageArray()
public boolean isEmpty()
public CloudChunkSection copy()
Copyright © 2021. All rights reserved.