Package net.minecraft.registry
Record Class DynamicRegistryManager.Entry<T>
java.lang.Object
java.lang.Record
net.minecraft.registry.DynamicRegistryManager.Entry<T>
- Record Components:
- key-
- value-
- Enclosing interface:
- DynamicRegistryManager
public static record DynamicRegistryManager.Entry<T>(RegistryKey<? extends Registry<T>> key, Registry<T> value)
extends Record
- Mappings:
- Namespace - Name - named - net/minecraft/registry/DynamicRegistryManager$Entry- intermediary - net/minecraft/class_5455$class_6892- official - kf$d- named - key- intermediary - comp_350- official - a- named - value- intermediary - comp_351- official - b
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.private DynamicRegistryManager.Entry<T> freeze()final inthashCode()Returns a hash code value for this object.RegistryKey<? extends Registry<T>> key()Returns the value of thekeyrecord component.private static <T,R extends Registry<? extends T>> 
 DynamicRegistryManager.Entry<T> of(Map.Entry<? extends RegistryKey<? extends Registry<?>>, R> entry) private static <T> DynamicRegistryManager.Entry<T> of(RegistryKey<? extends Registry<?>> key, Registry<?> value) final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
- 
Field Details
- 
Constructor Details- 
Entry
 
- 
- 
Method Details- 
ofprivate static <T,R extends Registry<? extends T>> DynamicRegistryManager.Entry<T> of(Map.Entry<? extends RegistryKey<? extends Registry<?>>, R> entry) - Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/registry/DynamicRegistryManager$Entry;of(Ljava/util/Map$Entry;)Lnet/minecraft/registry/DynamicRegistryManager$Entry;- intermediary - method_40330- Lnet/minecraft/class_5455$class_6892;method_40330(Ljava/util/Map$Entry;)Lnet/minecraft/class_5455$class_6892;- official - a- Lkf$d;a(Ljava/util/Map$Entry;)Lkf$d;
 
- 
ofprivate static <T> DynamicRegistryManager.Entry<T> of(RegistryKey<? extends Registry<?>> key, Registry<?> value) - Mappings:
- Namespace - Name - Mixin selector - named - of- Lnet/minecraft/registry/DynamicRegistryManager$Entry;of(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/registry/Registry;)Lnet/minecraft/registry/DynamicRegistryManager$Entry;- intermediary - method_40331- Lnet/minecraft/class_5455$class_6892;method_40331(Lnet/minecraft/class_5321;Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6892;- official - a- Lkf$d;a(Laku;Lke;)Lkf$d;
 
- 
freeze- Mappings:
- Namespace - Name - Mixin selector - named - freeze- Lnet/minecraft/registry/DynamicRegistryManager$Entry;freeze()Lnet/minecraft/registry/DynamicRegistryManager$Entry;- intermediary - method_40332- Lnet/minecraft/class_5455$class_6892;method_40332()Lnet/minecraft/class_5455$class_6892;- official - c- Lkf$d;c()Lkf$d;
 
- 
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).
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
valueReturns the value of thevaluerecord component.- Returns:
- the value of the valuerecord component
 
 
-