classpublicPriority 3
ChunkLightData
com.hypixel.hytale.server.core.universe.world.chunk.section.ChunkLightData
22
Methods
22
Public Methods
2
Fields
1
Constructors
Constants
intBITS_PER_CHANNEL= 4
intBLUE_CHANNEL= 2
intBLUE_CHANNEL_BIT= 8
intCHANNEL_COUNT= 4
intCHANNEL_MASK= 15
intDEPTH_MAGIC= 12
ChunkLightDataEMPTY= new ChunkLightData(null, (short)0)
intGREEN_CHANNEL= 1
intGREEN_CHANNEL_BIT= 4
intINITIAL_CAPACITY= 128
byteMAX_VALUE= 15
intRED_CHANNEL= 0
intRED_CHANNEL_BIT= 0
intRGB_MASK= -61441
intSIZE_MAGIC= 17
intSKY_CHANNEL= 3
intSKY_CHANNEL_BIT= 12
intTREE_MASK= 7
intTREE_SIZE= 8
Constructors
public
ChunkLightData(ByteBuf light, short changeId)Methods
Public Methods (22)
publicstatic
short combineLightValues(byte red, byte green, byte blue, byte sky)publicstatic
short combineLightValues(byte red, byte green, byte blue)public
short getBlockLight(int x, int y, int z)public
short getBlockLight(int index)public
byte getBlockLightIntensity(int index)public
byte getBlockLightIntensity(int x, int y, int z)public
byte getBlueBlockLight(int index)public
byte getBlueBlockLight(int x, int y, int z)public
short getChangeId()public
byte getGreenBlockLight(int x, int y, int z)public
byte getGreenBlockLight(int index)public
byte getLight(int index, int channel)public
short getLightRaw(int x, int y, int z)public
short getLightRaw(int index)publicstatic
byte getLightValue(short value, int channel)public
byte getRedBlockLight(int x, int y, int z)public
byte getRedBlockLight(int index)public
byte getSkyLight(int x, int y, int z)public
byte getSkyLight(int index)public
String octreeToString()@Nonnull
public
void serialize(ByteBuf buf)public
void serializeForPacket(ByteBuf buf)Fields
Protected Fields (1)
protected
short changeIdPrivate/Package Fields (1)
package-private
ByteBuf light