Record Class KnownRegistryDataMapsReplyPayload
java.lang.Object
java.lang.Record
net.neoforged.neoforge.network.payload.KnownRegistryDataMapsReplyPayload
- All Implemented Interfaces:
CustomPacketPayload
@Internal
public record KnownRegistryDataMapsReplyPayload(Map<ResourceKey<? extends Registry<?>>, Collection<Identifier>> dataMaps)
extends Record
implements 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 TypeFieldDescriptionprivate final Map<ResourceKey<? extends Registry<?>>, Collection<Identifier>> The field for thedataMapsrecord component.static final StreamCodec<FriendlyByteBuf, KnownRegistryDataMapsReplyPayload> static final CustomPacketPayload.Type<KnownRegistryDataMapsReplyPayload> -
Constructor Summary
ConstructorsConstructorDescriptionKnownRegistryDataMapsReplyPayload(Map<ResourceKey<? extends Registry<?>>, Collection<Identifier>> dataMaps) Creates an instance of aKnownRegistryDataMapsReplyPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionMap<ResourceKey<? extends Registry<?>>, Collection<Identifier>> dataMaps()Returns the value of thedataMapsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Methods inherited from interface CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
dataMaps
The field for thedataMapsrecord component. -
TYPE
-
STREAM_CODEC
-
-
Constructor Details
-
KnownRegistryDataMapsReplyPayload
public KnownRegistryDataMapsReplyPayload(Map<ResourceKey<? extends Registry<?>>, Collection<Identifier>> dataMaps) Creates an instance of aKnownRegistryDataMapsReplyPayloadrecord class.- Parameters:
dataMaps- the value for thedataMapsrecord component
-
-
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). -
dataMaps
Returns the value of thedataMapsrecord component.- Returns:
- the value of the
dataMapsrecord component
-