Record Class LightData
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.data.LightData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<byte[]> Returns the value of theblockLightrecord component.Returns the value of theblockMaskrecord component.Returns the value of theemptyBlockMaskrecord component.Returns the value of theemptySkyMaskrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.List<byte[]> skyLight()Returns the value of theskyLightrecord component.skyMask()Returns the value of theskyMaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MAX_SECTIONS
public static final int MAX_SECTIONS- See Also:
-
NETWORK_TYPE
-
-
Constructor Details
-
LightData
public LightData(BitSet skyMask, BitSet blockMask, BitSet emptySkyMask, BitSet emptyBlockMask, List<byte[]> skyLight, List<byte[]> blockLight) Creates an instance of aLightDatarecord class.- Parameters:
skyMask- the value for theskyMaskrecord componentblockMask- the value for theblockMaskrecord componentemptySkyMask- the value for theemptySkyMaskrecord componentemptyBlockMask- the value for theemptyBlockMaskrecord componentskyLight- the value for theskyLightrecord componentblockLight- the value for theblockLightrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
skyMask
Returns the value of theskyMaskrecord component.- Returns:
- the value of the
skyMaskrecord component
-
blockMask
Returns the value of theblockMaskrecord component.- Returns:
- the value of the
blockMaskrecord component
-
emptySkyMask
Returns the value of theemptySkyMaskrecord component.- Returns:
- the value of the
emptySkyMaskrecord component
-
emptyBlockMask
Returns the value of theemptyBlockMaskrecord component.- Returns:
- the value of the
emptyBlockMaskrecord component
-
skyLight
Returns the value of theskyLightrecord component.- Returns:
- the value of the
skyLightrecord component
-
blockLight
Returns the value of theblockLightrecord component.- Returns:
- the value of the
blockLightrecord component
-