public class ChunkSectionLightImpl extends java.lang.Object implements ChunkSectionLight
LIGHT_LENGTH
Constructor and Description |
---|
ChunkSectionLightImpl() |
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.
|
public void setBlockLight(byte[] data)
ChunkSectionLight
setBlockLight
in interface ChunkSectionLight
data
- raw block light datapublic void setSkyLight(byte[] data)
ChunkSectionLight
setSkyLight
in interface ChunkSectionLight
data
- raw sky light datapublic byte[] getBlockLight()
ChunkSectionLight
getBlockLight
in interface ChunkSectionLight
ChunkSectionLight.hasBlockLight()
public @Nullable NibbleArray getBlockLightNibbleArray()
ChunkSectionLight
getBlockLightNibbleArray
in interface ChunkSectionLight
ChunkSectionLight.hasBlockLight()
public byte[] getSkyLight()
ChunkSectionLight
getSkyLight
in interface ChunkSectionLight
ChunkSectionLight.hasSkyLight()
public @Nullable NibbleArray getSkyLightNibbleArray()
ChunkSectionLight
getSkyLightNibbleArray
in interface ChunkSectionLight
ChunkSectionLight.hasSkyLight()
public void readBlockLight(io.netty.buffer.ByteBuf input)
readBlockLight
in interface ChunkSectionLight
public void readSkyLight(io.netty.buffer.ByteBuf input)
readSkyLight
in interface ChunkSectionLight
public void writeBlockLight(io.netty.buffer.ByteBuf output)
ChunkSectionLight
writeBlockLight
in interface ChunkSectionLight
output
- buffer to write topublic void writeSkyLight(io.netty.buffer.ByteBuf output)
ChunkSectionLight
writeSkyLight
in interface ChunkSectionLight
output
- buffer to write topublic boolean hasSkyLight()
ChunkSectionLight
hasSkyLight
in interface ChunkSectionLight
public boolean hasBlockLight()
ChunkSectionLight
hasBlockLight
in interface ChunkSectionLight