Record Class ClientboundLightUpdatePacketData
java.lang.Object
java.lang.Record
net.minecraft.network.protocol.game.ClientboundLightUpdatePacketData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<byte[]> The field for theblockUpdatesrecord component.private final BitSetThe field for theblockYMaskrecord component.private static final StreamCodec<io.netty.buffer.ByteBuf, byte[]> private final BitSetThe field for theemptyBlockYMaskrecord component.private final BitSetThe field for theemptySkyYMaskrecord component.private final List<byte[]> The field for theskyUpdatesrecord component.private final BitSetThe field for theskyYMaskrecord component.static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundLightUpdatePacketData> -
Constructor Summary
ConstructorsConstructorDescriptionClientboundLightUpdatePacketData(BitSet skyYMask, BitSet blockYMask, BitSet emptySkyYMask, BitSet emptyBlockYMask, List<byte[]> skyUpdates, List<byte[]> blockUpdates) Creates an instance of aClientboundLightUpdatePacketDatarecord class.ClientboundLightUpdatePacketData(ChunkPos chunkPos, LevelLightEngine lightEngine, @Nullable BitSet skyChangedLightSectionFilter, @Nullable BitSet blockChangedLightSectionFilter) -
Method Summary
Modifier and TypeMethodDescriptionList<byte[]> Returns the value of theblockUpdatesrecord component.Returns the value of theblockYMaskrecord component.Returns the value of theemptyBlockYMaskrecord component.Returns the value of theemptySkyYMaskrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.private voidprepareSectionData(ChunkPos pos, LevelLightEngine lightEngine, LightLayer layer, int sectionIndex, BitSet mask, BitSet emptyMask, List<byte[]> updates) List<byte[]> Returns the value of theskyUpdatesrecord component.skyYMask()Returns the value of theskyYMaskrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
skyYMask
The field for theskyYMaskrecord component. -
blockYMask
The field for theblockYMaskrecord component. -
emptySkyYMask
The field for theemptySkyYMaskrecord component. -
emptyBlockYMask
The field for theemptyBlockYMaskrecord component. -
skyUpdates
The field for theskyUpdatesrecord component. -
blockUpdates
The field for theblockUpdatesrecord component. -
DATA_LAYER_STREAM_CODEC
-
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundLightUpdatePacketData> STREAM_CODEC
-
-
Constructor Details
-
ClientboundLightUpdatePacketData
-
ClientboundLightUpdatePacketData
public ClientboundLightUpdatePacketData(BitSet skyYMask, BitSet blockYMask, BitSet emptySkyYMask, BitSet emptyBlockYMask, List<byte[]> skyUpdates, List<byte[]> blockUpdates) Creates an instance of aClientboundLightUpdatePacketDatarecord class.- Parameters:
skyYMask- the value for theskyYMaskrecord componentblockYMask- the value for theblockYMaskrecord componentemptySkyYMask- the value for theemptySkyYMaskrecord componentemptyBlockYMask- the value for theemptyBlockYMaskrecord componentskyUpdates- the value for theskyUpdatesrecord componentblockUpdates- the value for theblockUpdatesrecord component
-
-
Method Details
-
prepareSectionData
private void prepareSectionData(ChunkPos pos, LevelLightEngine lightEngine, LightLayer layer, int sectionIndex, BitSet mask, BitSet emptyMask, List<byte[]> updates) -
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). -
skyYMask
Returns the value of theskyYMaskrecord component.- Returns:
- the value of the
skyYMaskrecord component
-
blockYMask
Returns the value of theblockYMaskrecord component.- Returns:
- the value of the
blockYMaskrecord component
-
emptySkyYMask
Returns the value of theemptySkyYMaskrecord component.- Returns:
- the value of the
emptySkyYMaskrecord component
-
emptyBlockYMask
Returns the value of theemptyBlockYMaskrecord component.- Returns:
- the value of the
emptyBlockYMaskrecord component
-
skyUpdates
Returns the value of theskyUpdatesrecord component.- Returns:
- the value of the
skyUpdatesrecord component
-
blockUpdates
Returns the value of theblockUpdatesrecord component.- Returns:
- the value of the
blockUpdatesrecord component
-