Record Class LightData
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.data.LightData
- All Implemented Interfaces:
NetworkBuffer.Writer
-
Constructor Summary
ConstructorsConstructorDescriptionLightData(@NotNull BitSet skyMask, @NotNull BitSet blockMask, @NotNull BitSet emptySkyMask, @NotNull BitSet emptyBlockMask, @NotNull List<byte[]> skyLight, @NotNull List<byte[]> blockLight) Creates an instance of aLightDatarecord class.LightData(@NotNull NetworkBuffer reader) -
Method Summary
Modifier and TypeMethodDescription@NotNull List<byte[]> Returns the value of theblockLightrecord component.@NotNull BitSetReturns the value of theblockMaskrecord component.@NotNull BitSetReturns the value of theemptyBlockMaskrecord component.@NotNull BitSetReturns 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.@NotNull List<byte[]> skyLight()Returns the value of theskyLightrecord component.@NotNull BitSetskyMask()Returns the value of theskyMaskrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(@NotNull NetworkBuffer writer)
-
Constructor Details
-
LightData
-
LightData
public LightData(@NotNull @NotNull BitSet skyMask, @NotNull @NotNull BitSet blockMask, @NotNull @NotNull BitSet emptySkyMask, @NotNull @NotNull BitSet emptyBlockMask, @NotNull @NotNull List<byte[]> skyLight, @NotNull @NotNull 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
-
write
- Specified by:
writein interfaceNetworkBuffer.Writer
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
-