Package net.minecraft.util.registry
Record Class DynamicRegistryManager.Info<E>
java.lang.Object
java.lang.Record
net.minecraft.util.registry.DynamicRegistryManager.Info<E>
- Record Components:
- registry-
- entryCodec-
- networkEntryCodec-
- Enclosing interface:
- DynamicRegistryManager
public static record DynamicRegistryManager.Info<E>(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<E> entryCodec, @Nullable com.mojang.serialization.Codec<E> networkEntryCodec)
extends Record
Represents the serialization behavior of the registries, including the
 id of the registry, the codec for its elements, and whether the registry
 should be sent to the client.
- Mappings:
- Namespace - Name - official - hn$c- intermediary - net/minecraft/class_5455$class_5456- named - net/minecraft/util/registry/DynamicRegistryManager$Info- official - a- intermediary - comp_293- named - registry- official - b- intermediary - comp_294- named - entryCodec- official - c- intermediary - comp_295- named - networkEntryCodec
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<E>The field for theentryCodecrecord component.The field for thenetworkEntryCodecrecord component.private final RegistryKey<? extends Registry<E>>The field for theregistryrecord component.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.mojang.serialization.Codec<E>Returns the value of theentryCodecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisSynced()Returns the value of thenetworkEntryCodecrecord component.RegistryKey<? extends Registry<E>>registry()Returns the value of theregistryrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
registryThe field for theregistryrecord component.
- 
entryCodecThe field for theentryCodecrecord component.
- 
networkEntryCodecThe field for thenetworkEntryCodecrecord component.
 
- 
- 
Constructor Details- 
Infopublic Info(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<E> entryCodec, @Nullable @Nullable com.mojang.serialization.Codec<E> networkEntryCodec) Creates an instance of aInforecord class.- Parameters:
- registry- the value for the- registryrecord component
- entryCodec- the value for the- entryCodecrecord component
- networkEntryCodec- the value for the- networkEntryCodecrecord component
 
 
- 
- 
Method Details- 
isSyncedpublic boolean isSynced()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhn$c;a()Z- intermediary - method_30537- Lnet/minecraft/class_5455$class_5456;method_30537()Z- named - isSynced- Lnet/minecraft/util/registry/DynamicRegistryManager$Info;isSynced()Z
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
registryReturns the value of theregistryrecord component.- Returns:
- the value of the registryrecord component
 
- 
entryCodecReturns the value of theentryCodecrecord component.- Returns:
- the value of the entryCodecrecord component
 
- 
networkEntryCodecReturns the value of thenetworkEntryCodecrecord component.- Returns:
- the value of the networkEntryCodecrecord component
 
 
-