Record Class AuxiliaryLightDataPayload
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.payload.AuxiliaryLightDataPayload
- All Implemented Interfaces:
CustomPacketPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface CustomPacketPayload
CustomPacketPayload.FallbackProvider<B>, CustomPacketPayload.Type<T>, CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theentriesrecord component.private final ChunkPosThe field for theposrecord component.static final StreamCodec<RegistryFriendlyByteBuf, AuxiliaryLightDataPayload> static final CustomPacketPayload.Type<AuxiliaryLightDataPayload> -
Constructor Summary
ConstructorsConstructorDescriptionAuxiliaryLightDataPayload(ChunkPos pos, Map<BlockPos, Byte> entries) Creates an instance of aAuxiliaryLightDataPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.pos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
pos
The field for theposrecord component. -
entries
-
TYPE
-
STREAM_CODEC
-
-
Constructor Details
-
AuxiliaryLightDataPayload
-
-
Method Details
-
type
- Specified by:
typein interfaceCustomPacketPayload
-
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). -
pos
Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
entries
-