public interface ChunkSectionLight
Modifier and Type | Field and Description |
---|---|
static int |
LIGHT_LENGTH
Length of the sky and block light nibble arrays.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlockLight()
Returns the nibblearray's raw block light byte array if present.
|
@Nullable NibbleArray |
getBlockLightNibbleArray()
Returns the block light nibblearray.
|
byte[] |
getSkyLight()
Returns the nibblearray's raw sky light byte array if present.
|
@Nullable NibbleArray |
getSkyLightNibbleArray()
Returns the sky light nibblearray.
|
boolean |
hasBlockLight()
Returns whether the section has block light.
|
boolean |
hasSkyLight()
Returns whether the section has sky light.
|
void |
readBlockLight(io.netty.buffer.ByteBuf input) |
void |
readSkyLight(io.netty.buffer.ByteBuf input) |
void |
setBlockLight(byte[] data)
Set the block light array.
|
void |
setSkyLight(byte[] data)
Set the sky light array.
|
void |
writeBlockLight(io.netty.buffer.ByteBuf output)
Write the block light to a buffer.
|
void |
writeSkyLight(io.netty.buffer.ByteBuf output)
Write the sky light to a buffer.
|
static final int LIGHT_LENGTH
boolean hasSkyLight()
boolean hasBlockLight()
byte[] getSkyLight()
hasSkyLight()
byte[] getBlockLight()
hasBlockLight()
void setSkyLight(byte[] data)
data
- raw sky light datavoid setBlockLight(byte[] data)
data
- raw block light data@Nullable NibbleArray getSkyLightNibbleArray()
hasSkyLight()
@Nullable NibbleArray getBlockLightNibbleArray()
hasBlockLight()
void readSkyLight(io.netty.buffer.ByteBuf input)
void readBlockLight(io.netty.buffer.ByteBuf input)
void writeSkyLight(io.netty.buffer.ByteBuf output)
output
- buffer to write tovoid writeBlockLight(io.netty.buffer.ByteBuf output)
output
- buffer to write to