Class CloudChunkSection
java.lang.Object
org.cloudburstmc.server.level.chunk.CloudChunkSection
- All Implemented Interfaces:
org.cloudburstmc.api.level.chunk.ChunkSection
public class CloudChunkSection
extends Object
implements org.cloudburstmc.api.level.chunk.ChunkSection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCloudChunkSection(BlockStorage[] blockStorage)CloudChunkSection(BlockStorage[] storage, byte[] blockLight, byte[] skyLight) -
Method Summary
Modifier and TypeMethodDescriptionstatic intblockIndex(int x, int y, int z)static voidcheckBounds(int x, int y, int z)copy()org.cloudburstmc.api.block.BlockStategetBlock(int x, int y, int z, int layer)bytegetBlockLight(int x, int y, int z)bytegetSkyLight(int x, int y, int z)booleanisEmpty()voidsetBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState)voidsetBlockLight(int x, int y, int z, byte val)voidsetSkyLight(int x, int y, int z, byte val)voidwriteToNetwork(io.netty.buffer.ByteBuf buffer)
-
Field Details
-
CHUNK_SECTION_VERSION
public static final int CHUNK_SECTION_VERSION- See Also:
- Constant Field Values
-
SIZE
public static final int SIZE- See Also:
- Constant Field Values
-
-
Constructor Details
-
CloudChunkSection
public CloudChunkSection() -
CloudChunkSection
-
CloudChunkSection
-
-
Method Details
-
blockIndex
public static int blockIndex(int x, int y, int z) -
checkBounds
public static void checkBounds(int x, int y, int z) -
getBlock
public org.cloudburstmc.api.block.BlockState getBlock(int x, int y, int z, int layer)- Specified by:
getBlockin interfaceorg.cloudburstmc.api.level.chunk.ChunkSection
-
setBlock
public void setBlock(int x, int y, int z, int layer, org.cloudburstmc.api.block.BlockState blockState)- Specified by:
setBlockin interfaceorg.cloudburstmc.api.level.chunk.ChunkSection
-
getSkyLight
public byte getSkyLight(int x, int y, int z)- Specified by:
getSkyLightin interfaceorg.cloudburstmc.api.level.chunk.ChunkSection
-
setSkyLight
public void setSkyLight(int x, int y, int z, byte val)- Specified by:
setSkyLightin interfaceorg.cloudburstmc.api.level.chunk.ChunkSection
-
getBlockLight
public byte getBlockLight(int x, int y, int z)- Specified by:
getBlockLightin interfaceorg.cloudburstmc.api.level.chunk.ChunkSection
-
setBlockLight
public void setBlockLight(int x, int y, int z, byte val)- Specified by:
setBlockLightin interfaceorg.cloudburstmc.api.level.chunk.ChunkSection
-
writeToNetwork
public void writeToNetwork(io.netty.buffer.ByteBuf buffer) -
getSkyLightArray
-
getBlockLightArray
-
getBlockStorageArray
-
isEmpty
public boolean isEmpty() -
copy
-