Package com.comphenix.protocol.wrappers
Class WrappedLevelChunkData.LightData
java.lang.Object
com.comphenix.protocol.wrappers.AbstractWrapper
com.comphenix.protocol.wrappers.WrappedLevelChunkData.LightData
- Enclosing class:
WrappedLevelChunkData
Wrapper for ClientboundLightUpdatePacketData
-
Field Summary
Fields inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
handle, handleType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromValues(BitSet skyYMask, BitSet blockYMask, BitSet emptySkyYMask, BitSet emptyBlockYMask, List<byte[]> skyUpdates, List<byte[]> blockUpdates) Constructs new LightData from valuesfromValues(BitSet skyYMask, BitSet blockYMask, BitSet emptySkyYMask, BitSet emptyBlockYMask, List<byte[]> skyUpdates, List<byte[]> blockUpdates, boolean trustEdges) Deprecated.Parameter trustEdges was removed in 1.20List<byte[]> A mutable list of block light arrays.The block light mask.The empty block light mask.The empty sky light mask.List<byte[]> A mutable list of sky light arrays.The sky light mask.booleanDeprecated.Removed in 1.20voidsetBlockYMask(BitSet blockYMask) Sets the block light maskvoidsetEmptyBlockYMask(BitSet emptyBlockYMask) Sets the empty block light maskvoidsetEmptySkyYMask(BitSet emptySkyYMask) Sets the empty sky light maskvoidsetSkyYMask(BitSet skyYMask) Sets the sky light maskvoidsetTrustEdges(boolean trustEdges) Deprecated.Removed in 1.20Methods inherited from class com.comphenix.protocol.wrappers.AbstractWrapper
equals, getHandle, getHandleType, hashCode, setHandle, toString
-
Constructor Details
-
LightData
-
-
Method Details
-
getSkyYMask
The sky light mask.- Returns:
- a
BitSet
-
setSkyYMask
Sets the sky light mask- Parameters:
skyYMask- the new mask
-
getBlockYMask
The block light mask.- Returns:
- a
BitSet
-
setBlockYMask
Sets the block light mask- Parameters:
blockYMask- the new mask
-
getEmptySkyYMask
The empty sky light mask.- Returns:
- a
BitSet
-
setEmptySkyYMask
Sets the empty sky light mask- Parameters:
emptySkyYMask- the new mask
-
getEmptyBlockYMask
The empty block light mask.- Returns:
- a
BitSet
-
setEmptyBlockYMask
Sets the empty block light mask- Parameters:
emptyBlockYMask- the new mask
-
getSkyUpdates
A mutable list of sky light arrays.- Returns:
- a mutable list of byte arrays.
-
getBlockUpdates
A mutable list of block light arrays.- Returns:
- a mutable list of byte arrays.
-
isTrustEdges
Deprecated.Removed in 1.20Whether edges can be trusted for light updates or not.- Returns:
trueif edges can be trusted,falseotherwise.
-
setTrustEdges
Deprecated.Removed in 1.20Sets 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.20Constructs new LightData from values- Parameters:
skyYMask- skyYMaskblockYMask- blockYMaskemptySkyYMask- emptySkyYMaskemptyBlockYMask- emptyBlockYMaskskyUpdates- skyUpdatesblockUpdates- blockUpdatestrustEdges- 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- skyYMaskblockYMask- blockYMaskemptySkyYMask- emptySkyYMaskemptyBlockYMask- emptyBlockYMaskskyUpdates- skyUpdatesblockUpdates- blockUpdates- Returns:
- new light data
-