java.lang.Object
com.github.retrooper.packetevents.protocol.world.chunk.LightData
All Implemented Interfaces:
Cloneable

public class LightData extends Object implements Cloneable
  • Constructor Details

    • LightData

      public LightData()
    • LightData

      public LightData(boolean trustEdges, BitSet blockLightMask, BitSet skyLightMask, BitSet emptyBlockLightMask, BitSet emptySkyLightMask, int skyLightCount, int blockLightCount, byte[][] skyLightArray, byte[][] blockLightArray)
  • Method Details

    • clone

      public LightData clone()
      Overrides:
      clone in class Object
    • isTrustEdges

      public boolean isTrustEdges()
    • setTrustEdges

      public void setTrustEdges(boolean trustEdges)
    • getBlockLightMask

      public BitSet getBlockLightMask()
    • setBlockLightMask

      public void setBlockLightMask(BitSet blockLightMask)
    • getSkyLightMask

      public BitSet getSkyLightMask()
    • setSkyLightMask

      public void setSkyLightMask(BitSet skyLightMask)
    • getEmptyBlockLightMask

      public BitSet getEmptyBlockLightMask()
    • setEmptyBlockLightMask

      public void setEmptyBlockLightMask(BitSet emptyBlockLightMask)
    • getEmptySkyLightMask

      public BitSet getEmptySkyLightMask()
    • setEmptySkyLightMask

      public void setEmptySkyLightMask(BitSet emptySkyLightMask)
    • getSkyLightCount

      public int getSkyLightCount()
    • setSkyLightCount

      public void setSkyLightCount(int skyLightCount)
    • getBlockLightCount

      public int getBlockLightCount()
    • setBlockLightCount

      public void setBlockLightCount(int blockLightCount)
    • getSkyLightArray

      public byte[][] getSkyLightArray()
    • setSkyLightArray

      public void setSkyLightArray(byte[][] skyLightArray)
    • getBlockLightArray

      public byte[][] getBlockLightArray()
    • setBlockLightArray

      public void setBlockLightArray(byte[][] blockLightArray)
    • read

      public static LightData read(PacketWrapper<?> packet)
    • write

      public static void write(PacketWrapper<?> packet, LightData lightData)