Package net.minecraft.registry
Class SimpleRegistry<T>
java.lang.Object
net.minecraft.registry.SimpleRegistry<T>
- All Implemented Interfaces:
- com.mojang.serialization.Keyable,- Iterable<T>,- MutableRegistry<T>,- Registry<T>,- IndexedIterable<T>
- Direct Known Subclasses:
- SimpleDefaultedRegistry
An implementation of a mutable registry. All vanilla registries use this (or its
 subclass, 
DefaultedRegistry).- See Also:
- Mappings:
- Namespace - Name - official - hm- intermediary - net/minecraft/class_2370- named - net/minecraft/registry/SimpleRegistry
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate @Nullable List<RegistryEntry.Reference<T>>private final Object2IntMap<T>private booleanprivate final Map<Identifier,RegistryEntry.Reference<T>> private @Nullable Map<T,RegistryEntry.Reference<T>> (package private) final RegistryKey<? extends Registry<T>>private final Map<RegistryKey<T>,RegistryEntry.Reference<T>> private com.mojang.serialization.Lifecycleprivate static final Loggerprivate intprivate final ObjectList<RegistryEntry.Reference<T>>private Map<TagKey<T>,RegistryEntryList.Named<T>> private final Map<T,RegistryEntry.Reference<T>> private final RegistryWrapper.Impl<T>Fields inherited from interface net.minecraft.util.collection.IndexedIterableABSENT_RAW_ID
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) 
- 
Method SummaryModifier and TypeMethodDescriptionadd(RegistryKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) private voidprivate voidassertNotFrozen(RegistryKey<T> key) voidbooleancontains(RegistryKey<T> key) Returns whetherkeyis registered in this registry.booleancontainsId(Identifier id) Returns whetheridis registered in this registry.createEntry(T value) private RegistryEntryList.Named<T>createNamedEntryList(TagKey<T> tag) freeze()get(int index) get(@Nullable RegistryKey<T> key) Returns the value that is assignedkey, ornullif there is none.get(@Nullable Identifier id) Returns the value that is assignedid, ornullif there is none.private List<RegistryEntry.Reference<T>>getEntry(int rawId) Returns the reference registry entry for the value assignedrawId, or an empty optional if there is no such value.getEntry(RegistryKey<T> key) Returns the reference registry entry for the value assignedkey, or an empty optional if there is no such value.com.mojang.serialization.LifecyclegetEntryLifecycle(T entry) Gets the lifecycle of a registry entry.getEntryList(TagKey<T> tag) Returns the registry entry list of values that are assignedtag, or an empty optional if the tag is not known to the registry.Set<Map.Entry<RegistryKey<T>,T>> Returns the set containingMap.Entryof the registry keys and values registered in this registry.Returns the ID assigned tovalue, ornullif it is not registered.getIds()Returns the set of all IDs registered in a registry.RegistryKey<? extends Registry<T>>getKey()Returns the registry key that identifies this registry.Returns the registry key ofvalue, or an empty optional if it is not registered.Set<RegistryKey<T>>getKeys()Returns the set of all registry keys registered in a registry.com.mojang.serialization.Lifecycle(package private) RegistryEntry.Reference<T>getOrCreateEntry(RegistryKey<T> key) getOrCreateEntryList(TagKey<T> tag) Returns a random registry entry from this registry, or an empty optional if the registry is empty.intReturns a registry wrapper that does not mutate the backing registry under any circumstances.private static <T> TgetValue(RegistryEntry.Reference<T> entry) booleanisEmpty()Returns whether the registry is empty.iterator()voidpopulateTags(Map<TagKey<T>, List<RegistryEntry<T>>> tagEntries) set(int int2, RegistryKey<T> registryKey, T t, com.mojang.serialization.Lifecycle lifecycle) intsize()Returns a stream of reference registry entries of this registry.Returns a stream of all tag keys known to this registry.Stream<com.mojang.datafixers.util.Pair<TagKey<T>,RegistryEntryList.Named<T>>> toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.collection.IndexedIterablegetOrThrowMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface net.minecraft.registry.RegistrycreateEntryCodec, entryOf, getCodec, getIndexedEntries, getOrEmpty, getOrEmpty, getOrThrow, getTagCreatingWrapper, iterateEntries, keys, stream
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - b- Lhm;b:Lorg/slf4j/Logger;- intermediary - field_36635- Lnet/minecraft/class_2370;field_36635:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/registry/SimpleRegistry;LOGGER:Lorg/slf4j/Logger;
 
- 
key- Mappings:
- Namespace - Name - Mixin selector - official - c- Lhm;c:Lacp;- intermediary - field_41126- Lnet/minecraft/class_2370;field_41126:Lnet/minecraft/class_5321;- named - key- Lnet/minecraft/registry/SimpleRegistry;key:Lnet/minecraft/registry/RegistryKey;
 
- 
rawIdToEntry- Mappings:
- Namespace - Name - Mixin selector - official - d- Lhm;d:Lit/unimi/dsi/fastutil/objects/ObjectList;- intermediary - field_26682- Lnet/minecraft/class_2370;field_26682:Lit/unimi/dsi/fastutil/objects/ObjectList;- named - rawIdToEntry- Lnet/minecraft/registry/SimpleRegistry;rawIdToEntry:Lit/unimi/dsi/fastutil/objects/ObjectList;
 
- 
entryToRawId- Mappings:
- Namespace - Name - Mixin selector - official - e- Lhm;e:Lit/unimi/dsi/fastutil/objects/Object2IntMap;- intermediary - field_26683- Lnet/minecraft/class_2370;field_26683:Lit/unimi/dsi/fastutil/objects/Object2IntMap;- named - entryToRawId- Lnet/minecraft/registry/SimpleRegistry;entryToRawId:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
 
- 
idToEntry- Mappings:
- Namespace - Name - Mixin selector - official - f- Lhm;f:Ljava/util/Map;- intermediary - field_11107- Lnet/minecraft/class_2370;field_11107:Ljava/util/Map;- named - idToEntry- Lnet/minecraft/registry/SimpleRegistry;idToEntry:Ljava/util/Map;
 
- 
keyToEntry- Mappings:
- Namespace - Name - Mixin selector - official - g- Lhm;g:Ljava/util/Map;- intermediary - field_25067- Lnet/minecraft/class_2370;field_25067:Ljava/util/Map;- named - keyToEntry- Lnet/minecraft/registry/SimpleRegistry;keyToEntry:Ljava/util/Map;
 
- 
valueToEntry- Mappings:
- Namespace - Name - Mixin selector - official - h- Lhm;h:Ljava/util/Map;- intermediary - field_36461- Lnet/minecraft/class_2370;field_36461:Ljava/util/Map;- named - valueToEntry- Lnet/minecraft/registry/SimpleRegistry;valueToEntry:Ljava/util/Map;
 
- 
entryToLifecycle- Mappings:
- Namespace - Name - Mixin selector - official - i- Lhm;i:Ljava/util/Map;- intermediary - field_26731- Lnet/minecraft/class_2370;field_26731:Ljava/util/Map;- named - entryToLifecycle- Lnet/minecraft/registry/SimpleRegistry;entryToLifecycle:Ljava/util/Map;
 
- 
lifecycleprivate com.mojang.serialization.Lifecycle lifecycle- Mappings:
- Namespace - Name - Mixin selector - official - j- Lhm;j:Lcom/mojang/serialization/Lifecycle;- intermediary - field_26732- Lnet/minecraft/class_2370;field_26732:Lcom/mojang/serialization/Lifecycle;- named - lifecycle- Lnet/minecraft/registry/SimpleRegistry;lifecycle:Lcom/mojang/serialization/Lifecycle;
 
- 
tagToEntryList- Mappings:
- Namespace - Name - Mixin selector - official - k- Lhm;k:Ljava/util/Map;- intermediary - field_36462- Lnet/minecraft/class_2370;field_36462:Ljava/util/Map;- named - tagToEntryList- Lnet/minecraft/registry/SimpleRegistry;tagToEntryList:Ljava/util/Map;
 
- 
frozenprivate boolean frozen- Mappings:
- Namespace - Name - Mixin selector - official - l- Lhm;l:Z- intermediary - field_36463- Lnet/minecraft/class_2370;field_36463:Z- named - frozen- Lnet/minecraft/registry/SimpleRegistry;frozen:Z
 
- 
intrusiveValueToEntry- Mappings:
- Namespace - Name - Mixin selector - official - m- Lhm;m:Ljava/util/Map;- intermediary - field_40584- Lnet/minecraft/class_2370;field_40584:Ljava/util/Map;- named - intrusiveValueToEntry- Lnet/minecraft/registry/SimpleRegistry;intrusiveValueToEntry:Ljava/util/Map;
 
- 
cachedEntries- Mappings:
- Namespace - Name - Mixin selector - official - n- Lhm;n:Ljava/util/List;- intermediary - field_36634- Lnet/minecraft/class_2370;field_36634:Ljava/util/List;- named - cachedEntries- Lnet/minecraft/registry/SimpleRegistry;cachedEntries:Ljava/util/List;
 
- 
nextIdprivate int nextId- Mappings:
- Namespace - Name - Mixin selector - official - o- Lhm;o:I- intermediary - field_11109- Lnet/minecraft/class_2370;field_11109:I- named - nextId- Lnet/minecraft/registry/SimpleRegistry;nextId:I
 
- 
wrapper- Mappings:
- Namespace - Name - Mixin selector - official - p- Lhm;p:Lhg$c;- intermediary - field_41127- Lnet/minecraft/class_2370;field_41127:Lnet/minecraft/class_7225$class_7226;- named - wrapper- Lnet/minecraft/registry/SimpleRegistry;wrapper:Lnet/minecraft/registry/RegistryWrapper$Impl;
 
 
- 
- 
Constructor Details- 
SimpleRegistrypublic SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lhm;<init>(Lacp;Lcom/mojang/serialization/Lifecycle;)V- intermediary - <init>- Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;)V- named - <init>- Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;)V
 
- 
SimpleRegistrypublic SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lhm;<init>(Lacp;Lcom/mojang/serialization/Lifecycle;Z)V- intermediary - <init>- Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Z)V- named - <init>- Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Z)V
 
 
- 
- 
Method Details- 
getKeyReturns the registry key that identifies this registry.- Specified by:
- getKeyin interface- Registry<T>
- Returns:
- the registry key that identifies this registry
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lhr;c()Lacp;- intermediary - method_30517- Lnet/minecraft/class_2378;method_30517()Lnet/minecraft/class_5321;- named - getKey- Lnet/minecraft/registry/Registry;getKey()Lnet/minecraft/registry/RegistryKey;
 
- 
toString
- 
getEntries- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhm;a()Ljava/util/List;- intermediary - method_40561- Lnet/minecraft/class_2370;method_40561()Ljava/util/List;- named - getEntries- Lnet/minecraft/registry/SimpleRegistry;getEntries()Ljava/util/List;
 
- 
assertNotFrozenprivate void assertNotFrozen()- Mappings:
- Namespace - Name - Mixin selector - official - v- Lhm;v()V- intermediary - method_45939- Lnet/minecraft/class_2370;method_45939()V- named - assertNotFrozen- Lnet/minecraft/registry/SimpleRegistry;assertNotFrozen()V
 
- 
assertNotFrozen- Mappings:
- Namespace - Name - Mixin selector - official - g- Lhm;g(Lacp;)V- intermediary - method_40274- Lnet/minecraft/class_2370;method_40274(Lnet/minecraft/class_5321;)V- named - assertNotFrozen- Lnet/minecraft/registry/SimpleRegistry;assertNotFrozen(Lnet/minecraft/registry/RegistryKey;)V
 
- 
setpublic RegistryEntry.Reference<T> set(int int2, RegistryKey<T> registryKey, T t, com.mojang.serialization.Lifecycle lifecycle) - Specified by:
- setin interface- MutableRegistry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhm;a(ILacp;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lhe$c;- intermediary - method_46744- Lnet/minecraft/class_2370;method_46744(ILnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_6880$class_6883;- named - set- Lnet/minecraft/registry/SimpleRegistry;set(ILnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
 
- 
addpublic RegistryEntry.Reference<T> add(RegistryKey<T> key, T entry, com.mojang.serialization.Lifecycle lifecycle) - Specified by:
- addin interface- MutableRegistry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lia;a(Lacp;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lhe$c;- intermediary - method_10272- Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/class_6880$class_6883;- named - add- Lnet/minecraft/registry/MutableRegistry;add(Lnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lcom/mojang/serialization/Lifecycle;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
 
- 
getIdReturns the ID assigned tovalue, ornullif it is not registered.- Specified by:
- getIdin interface- Registry<T>
- Returns:
- the ID assigned to value, ornullif it is not registered
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lhr;b(Ljava/lang/Object;)Lacq;- intermediary - method_10221- Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;- named - getId- Lnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;
 
- 
getKeyReturns the registry key ofvalue, or an empty optional if it is not registered.- Specified by:
- getKeyin interface- Registry<T>
- Returns:
- the registry key of value, or an empty optional if it is not registered
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lhr;c(Ljava/lang/Object;)Ljava/util/Optional;- intermediary - method_29113- Lnet/minecraft/class_2378;method_29113(Ljava/lang/Object;)Ljava/util/Optional;- named - getKey- Lnet/minecraft/registry/Registry;getKey(Ljava/lang/Object;)Ljava/util/Optional;
 
- 
getRawId- Specified by:
- getRawIdin interface- IndexedIterable<T>
- Specified by:
- getRawIdin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhj;a(Ljava/lang/Object;)I- intermediary - method_10206- Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)I- named - getRawId- Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
 
- 
getReturns the value that is assignedkey, ornullif there is none.- Specified by:
- getin interface- Registry<T>
- Returns:
- the value that is assigned key, ornullif there is none
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhr;a(Lacp;)Ljava/lang/Object;- intermediary - method_29107- Lnet/minecraft/class_2378;method_29107(Lnet/minecraft/class_5321;)Ljava/lang/Object;- named - get- Lnet/minecraft/registry/Registry;get(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/Object;
 
- 
get- Specified by:
- getin interface- IndexedIterable<T>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhj;a(I)Ljava/lang/Object;- intermediary - method_10200- Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;- named - get- Lnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
 
- 
getEntryReturns the reference registry entry for the value assignedrawId, or an empty optional if there is no such value.- Specified by:
- getEntryin interface- Registry<T>
- Returns:
- the reference registry entry for the value assigned rawId, or an empty optional if there is no such value
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lhr;c(I)Ljava/util/Optional;- intermediary - method_40265- Lnet/minecraft/class_2378;method_40265(I)Ljava/util/Optional;- named - getEntry- Lnet/minecraft/registry/Registry;getEntry(I)Ljava/util/Optional;
 
- 
getEntryReturns the reference registry entry for the value assignedkey, or an empty optional if there is no such value.- Specified by:
- getEntryin interface- Registry<T>
- Returns:
- the reference registry entry for the value assigned key, or an empty optional if there is no such value
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lhr;b(Lacp;)Ljava/util/Optional;- intermediary - method_40264- Lnet/minecraft/class_2378;method_40264(Lnet/minecraft/class_5321;)Ljava/util/Optional;- named - getEntry- Lnet/minecraft/registry/Registry;getEntry(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
 
- 
getEntry- Specified by:
- getEntryin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lhr;d(Ljava/lang/Object;)Lhe;- intermediary - method_47983- Lnet/minecraft/class_2378;method_47983(Ljava/lang/Object;)Lnet/minecraft/class_6880;- named - getEntry- Lnet/minecraft/registry/Registry;getEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry;
 
- 
getOrCreateEntry- Mappings:
- Namespace - Name - Mixin selector - official - h- Lhm;h(Lacp;)Lhe$c;- intermediary - method_44298- Lnet/minecraft/class_2370;method_44298(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;- named - getOrCreateEntry- Lnet/minecraft/registry/SimpleRegistry;getOrCreateEntry(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
 
- 
sizepublic int size()- Specified by:
- sizein interface- IndexedIterable<T>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lhj;b()I- intermediary - method_10204- Lnet/minecraft/class_2359;method_10204()I- named - size- Lnet/minecraft/util/collection/IndexedIterable;size()I
 
- 
getEntryLifecycleGets the lifecycle of a registry entry.- Specified by:
- getEntryLifecyclein interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lhr;e(Ljava/lang/Object;)Lcom/mojang/serialization/Lifecycle;- intermediary - method_31139- Lnet/minecraft/class_2378;method_31139(Ljava/lang/Object;)Lcom/mojang/serialization/Lifecycle;- named - getEntryLifecycle- Lnet/minecraft/registry/Registry;getEntryLifecycle(Ljava/lang/Object;)Lcom/mojang/serialization/Lifecycle;
 
- 
getLifecyclepublic com.mojang.serialization.Lifecycle getLifecycle()- Specified by:
- getLifecyclein interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - d- Lhr;d()Lcom/mojang/serialization/Lifecycle;- intermediary - method_31138- Lnet/minecraft/class_2378;method_31138()Lcom/mojang/serialization/Lifecycle;- named - getLifecycle- Lnet/minecraft/registry/Registry;getLifecycle()Lcom/mojang/serialization/Lifecycle;
 
- 
iterator
- 
getReturns the value that is assignedid, ornullif there is none.- Specified by:
- getin interface- Registry<T>
- Returns:
- the value that is assigned id, ornullif there is none
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhr;a(Lacq;)Ljava/lang/Object;- intermediary - method_10223- Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/lang/Object;- named - get- Lnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
 
- 
getValue- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhm;a(Lhe$c;)Ljava/lang/Object;- intermediary - method_40253- Lnet/minecraft/class_2370;method_40253(Lnet/minecraft/class_6880$class_6883;)Ljava/lang/Object;- named - getValue- Lnet/minecraft/registry/SimpleRegistry;getValue(Lnet/minecraft/registry/entry/RegistryEntry$Reference;)Ljava/lang/Object;
 
- 
getIdsReturns the set of all IDs registered in a registry.- Specified by:
- getIdsin interface- Registry<T>
- Returns:
- the set of all IDs registered in a registry
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lhr;e()Ljava/util/Set;- intermediary - method_10235- Lnet/minecraft/class_2378;method_10235()Ljava/util/Set;- named - getIds- Lnet/minecraft/registry/Registry;getIds()Ljava/util/Set;
 
- 
getKeysReturns the set of all registry keys registered in a registry.- Specified by:
- getKeysin interface- Registry<T>
- Returns:
- the set of all registry keys registered in a registry
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lhr;f()Ljava/util/Set;- intermediary - method_42021- Lnet/minecraft/class_2378;method_42021()Ljava/util/Set;- named - getKeys- Lnet/minecraft/registry/Registry;getKeys()Ljava/util/Set;
 
- 
getEntrySetReturns the set containingMap.Entryof the registry keys and values registered in this registry.- Specified by:
- getEntrySetin interface- Registry<T>
- Returns:
- the set containing Map.Entryof the registry keys and values registered in this registry
- Mappings:
- Namespace - Name - Mixin selector - official - g- Lhr;g()Ljava/util/Set;- intermediary - method_29722- Lnet/minecraft/class_2378;method_29722()Ljava/util/Set;- named - getEntrySet- Lnet/minecraft/registry/Registry;getEntrySet()Ljava/util/Set;
 
- 
streamEntriesReturns a stream of reference registry entries of this registry.- Specified by:
- streamEntriesin interface- Registry<T>
- Returns:
- a stream of reference registry entries of this registry
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lhr;h()Ljava/util/stream/Stream;- intermediary - method_40270- Lnet/minecraft/class_2378;method_40270()Ljava/util/stream/Stream;- named - streamEntries- Lnet/minecraft/registry/Registry;streamEntries()Ljava/util/stream/Stream;
 
- 
streamTagsAndEntriespublic Stream<com.mojang.datafixers.util.Pair<TagKey<T>,RegistryEntryList.Named<T>>> streamTagsAndEntries()- Specified by:
- streamTagsAndEntriesin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lhr;i()Ljava/util/stream/Stream;- intermediary - method_40272- Lnet/minecraft/class_2378;method_40272()Ljava/util/stream/Stream;- named - streamTagsAndEntries- Lnet/minecraft/registry/Registry;streamTagsAndEntries()Ljava/util/stream/Stream;
 
- 
getOrCreateEntryList- Specified by:
- getOrCreateEntryListin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhr;a(Lanl;)Lhi$c;- intermediary - method_40260- Lnet/minecraft/class_2378;method_40260(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;- named - getOrCreateEntryList- Lnet/minecraft/registry/Registry;getOrCreateEntryList(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;
 
- 
createNamedEntryList- Mappings:
- Namespace - Name - Mixin selector - official - d- Lhm;d(Lanl;)Lhi$c;- intermediary - method_40562- Lnet/minecraft/class_2370;method_40562(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;- named - createNamedEntryList- Lnet/minecraft/registry/SimpleRegistry;createNamedEntryList(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;
 
- 
streamTagsReturns a stream of all tag keys known to this registry.- Specified by:
- streamTagsin interface- Registry<T>
- Returns:
- a stream of all tag keys known to this registry
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lhr;j()Ljava/util/stream/Stream;- intermediary - method_40273- Lnet/minecraft/class_2378;method_40273()Ljava/util/stream/Stream;- named - streamTags- Lnet/minecraft/registry/Registry;streamTags()Ljava/util/stream/Stream;
 
- 
isEmptypublic boolean isEmpty()Returns whether the registry is empty.- Specified by:
- isEmptyin interface- MutableRegistry<T>
- Returns:
- whether the registry is empty
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lia;k()Z- intermediary - method_35863- Lnet/minecraft/class_2385;method_35863()Z- named - isEmpty- Lnet/minecraft/registry/MutableRegistry;isEmpty()Z
 
- 
getRandomReturns a random registry entry from this registry, or an empty optional if the registry is empty.- Specified by:
- getRandomin interface- Registry<T>
- Returns:
- a random registry entry from this registry, or an empty optional if the registry is empty
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhr;a(Lapf;)Ljava/util/Optional;- intermediary - method_10240- Lnet/minecraft/class_2378;method_10240(Lnet/minecraft/class_5819;)Ljava/util/Optional;- named - getRandom- Lnet/minecraft/registry/Registry;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;
 
- 
containsIdReturns whetheridis registered in this registry.- Specified by:
- containsIdin interface- Registry<T>
- Returns:
- whether idis registered in this registry
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lhr;c(Lacq;)Z- intermediary - method_10250- Lnet/minecraft/class_2378;method_10250(Lnet/minecraft/class_2960;)Z- named - containsId- Lnet/minecraft/registry/Registry;containsId(Lnet/minecraft/util/Identifier;)Z
 
- 
containsReturns whetherkeyis registered in this registry.- Specified by:
- containsin interface- Registry<T>
- Returns:
- whether keyis registered in this registry
- Mappings:
- Namespace - Name - Mixin selector - official - c- Lhr;c(Lacp;)Z- intermediary - method_35842- Lnet/minecraft/class_2378;method_35842(Lnet/minecraft/class_5321;)Z- named - contains- Lnet/minecraft/registry/Registry;contains(Lnet/minecraft/registry/RegistryKey;)Z
 
- 
freeze
- 
createEntry- Specified by:
- createEntryin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - f- Lhr;f(Ljava/lang/Object;)Lhe$c;- intermediary - method_40269- Lnet/minecraft/class_2378;method_40269(Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;- named - createEntry- Lnet/minecraft/registry/Registry;createEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
 
- 
getEntryListReturns the registry entry list of values that are assignedtag, or an empty optional if the tag is not known to the registry.- Specified by:
- getEntryListin interface- Registry<T>
- Returns:
- the registry entry list of values that are assigned tag, or an empty optional if the tag is not known to the registry
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lhr;b(Lanl;)Ljava/util/Optional;- intermediary - method_40266- Lnet/minecraft/class_2378;method_40266(Lnet/minecraft/class_6862;)Ljava/util/Optional;- named - getEntryList- Lnet/minecraft/registry/Registry;getEntryList(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;
 
- 
populateTags- Specified by:
- populateTagsin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lhr;a(Ljava/util/Map;)V- intermediary - method_40257- Lnet/minecraft/class_2378;method_40257(Ljava/util/Map;)V- named - populateTags- Lnet/minecraft/registry/Registry;populateTags(Ljava/util/Map;)V
 
- 
clearTagspublic void clearTags()
- 
createMutableEntryLookup- Specified by:
- createMutableEntryLookupin interface- MutableRegistry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - n- Lia;n()Lhf;- intermediary - method_46769- Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;- named - createMutableEntryLookup- Lnet/minecraft/registry/MutableRegistry;createMutableEntryLookup()Lnet/minecraft/registry/RegistryEntryLookup;
 
- 
getEntryOwner- Specified by:
- getEntryOwnerin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - official - o- Lhr;o()Lhh;- intermediary - method_46770- Lnet/minecraft/class_2378;method_46770()Lnet/minecraft/class_7876;- named - getEntryOwner- Lnet/minecraft/registry/Registry;getEntryOwner()Lnet/minecraft/registry/entry/RegistryEntryOwner;
 
- 
getReadOnlyWrapperReturns a registry wrapper that does not mutate the backing registry under any circumstances.- Specified by:
- getReadOnlyWrapperin interface- Registry<T>
- Returns:
- a registry wrapper that does not mutate the backing registry under any circumstances
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - p- Lhr;p()Lhg$c;- intermediary - method_46771- Lnet/minecraft/class_2378;method_46771()Lnet/minecraft/class_7225$class_7226;- named - getReadOnlyWrapper- Lnet/minecraft/registry/Registry;getReadOnlyWrapper()Lnet/minecraft/registry/RegistryWrapper$Impl;
 
 
-