Class WrappedLevelChunkData.LightData

java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.WrappedLevelChunkData.LightData
Enclosing class:
WrappedLevelChunkData

public static class WrappedLevelChunkData.LightData extends AbstractWrapper
Wrapper for ClientboundLightUpdatePacketData
  • Constructor Details

    • LightData

      public LightData(Object handle)
  • Method Details

    • getSkyYMask

      public BitSet getSkyYMask()
      The sky light mask.
      Returns:
      a BitSet
    • setSkyYMask

      public void setSkyYMask(BitSet skyYMask)
      Sets the sky light mask
      Parameters:
      skyYMask - the new mask
    • getBlockYMask

      public BitSet getBlockYMask()
      The block light mask.
      Returns:
      a BitSet
    • setBlockYMask

      public void setBlockYMask(BitSet blockYMask)
      Sets the block light mask
      Parameters:
      blockYMask - the new mask
    • getEmptySkyYMask

      public BitSet getEmptySkyYMask()
      The empty sky light mask.
      Returns:
      a BitSet
    • setEmptySkyYMask

      public void setEmptySkyYMask(BitSet emptySkyYMask)
      Sets the empty sky light mask
      Parameters:
      emptySkyYMask - the new mask
    • getEmptyBlockYMask

      public BitSet getEmptyBlockYMask()
      The empty block light mask.
      Returns:
      a BitSet
    • setEmptyBlockYMask

      public void setEmptyBlockYMask(BitSet emptyBlockYMask)
      Sets the empty block light mask
      Parameters:
      emptyBlockYMask - the new mask
    • getSkyUpdates

      public List<byte[]> getSkyUpdates()
      A mutable list of sky light arrays.
      Returns:
      a mutable list of byte arrays.
    • getBlockUpdates

      public List<byte[]> getBlockUpdates()
      A mutable list of block light arrays.
      Returns:
      a mutable list of byte arrays.
    • isTrustEdges

      @Deprecated public boolean isTrustEdges()
      Deprecated.
      Removed in 1.20
      Whether edges can be trusted for light updates or not.
      Returns:
      true if edges can be trusted, false otherwise.
    • setTrustEdges

      @Deprecated public void setTrustEdges(boolean trustEdges)
      Deprecated.
      Removed in 1.20
      Sets whether edges can be trusted for light updates or not.
      Parameters:
      trustEdges - the new value
    • fromValues

      @Deprecated public static WrappedLevelChunkData.LightData fromValues(BitSet skyYMask, BitSet blockYMask, BitSet emptySkyYMask, BitSet emptyBlockYMask, List<byte[]> skyUpdates, List<byte[]> blockUpdates, boolean trustEdges)
      Deprecated.
      Parameter trustEdges was removed in 1.20
      Constructs new LightData from values
      Parameters:
      skyYMask - skyYMask
      blockYMask - blockYMask
      emptySkyYMask - emptySkyYMask
      emptyBlockYMask - emptyBlockYMask
      skyUpdates - skyUpdates
      blockUpdates - blockUpdates
      trustEdges - Ignored
      Returns:
      new light data
    • fromValues

      public static WrappedLevelChunkData.LightData fromValues(BitSet skyYMask, BitSet blockYMask, BitSet emptySkyYMask, BitSet emptyBlockYMask, List<byte[]> skyUpdates, List<byte[]> blockUpdates)
      Constructs new LightData from values
      Parameters:
      skyYMask - skyYMask
      blockYMask - blockYMask
      emptySkyYMask - emptySkyYMask
      emptyBlockYMask - emptyBlockYMask
      skyUpdates - skyUpdates
      blockUpdates - blockUpdates
      Returns:
      new light data