Package net.minecraft.registry
Class SimpleRegistry<T>
java.lang.Object
net.minecraft.registry.SimpleRegistry<T>
- All Implemented Interfaces:
- com.mojang.serialization.Keyable,- Iterable<T>,- RegistryEntryOwner<T>,- MutableRegistry<T>,- Registry<T>,- RegistryEntryLookup<T>,- RegistryWrapper<T>,- RegistryWrapper.Impl<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 - named - net/minecraft/registry/SimpleRegistry- intermediary - net/minecraft/class_2370- official - jo
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.registry.RegistryRegistry.PendingTagLoad<T>Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryEntryLookupRegistryEntryLookup.RegistryLookupNested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapperRegistryWrapper.Impl<T>, RegistryWrapper.WrapperLookupNested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper.ImplRegistryWrapper.Impl.Delegating<T>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Reference2IntMap<T> private booleanprivate final Map<Identifier, RegistryEntry.Reference<T>> private @Nullable Map<T, RegistryEntry.Reference<T>> private final RegistryKey<? extends Registry<T>> private final Map<RegistryKey<T>, RegistryEntry.Reference<T>> private final Map<RegistryKey<T>, RegistryEntryInfo> private com.mojang.serialization.Lifecycleprivate final ObjectList<RegistryEntry.Reference<T>> (package private) SimpleRegistry.TagLookup<T> private final Map<TagKey<T>, RegistryEntryList.Named<T>> private final Map<T, RegistryEntry.Reference<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 value, RegistryEntryInfo info) private voidprivate voidassertNotFrozen(RegistryKey<T> key) booleancontains(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) private RegistryEntry.Reference<T> ensureTagable(TagKey<T> key, RegistryEntry<T> entry) 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.getEntry(int rawId) Returns the reference registry entry for the value assignedrawId, or an empty optional if there is no such value.getEntry(Identifier id) Returns the reference registry entry for the value that is assignedid, or an empty optional if there is no such value.getEntryInfo(RegistryKey<T> key) 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 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.LifecyclegetOptional(RegistryKey<T> key) getOptional(TagKey<T> tag) (package private) RegistryEntry.Reference<T> getOrCreateEntry(RegistryKey<T> key) Returns a random registry entry from this registry, or an empty optional if the registry is empty.int(package private) RegistryEntryList.Named<T> getTags()private static <T> TgetValue(RegistryEntry.Reference<T> entry) booleanisEmpty()Returns whether the registry is empty.iterator()(package private) voidvoidvoidsetEntries(TagKey<T> tag, List<RegistryEntry<T>> entries) intsize()Returns a stream of registry keys defined in the wrapped registry.toString()Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.collection.IndexedIterablegetOrThrow, getRawIdOrThrowMethods inherited from interface java.lang.IterableforEach, spliteratorMethods inherited from interface net.minecraft.registry.RegistrygetCodec, getEntryCodec, getIndexedEntries, getOptionalValue, getOptionalValue, getRandomEntry, getValueOrThrow, iterateEntries, keys, streamMethods inherited from interface net.minecraft.registry.RegistryEntryLookupgetOrThrow, getOrThrowMethods inherited from interface net.minecraft.registry.entry.RegistryEntryOwnerownerEqualsMethods inherited from interface net.minecraft.registry.RegistryWrapperstreamKeys, streamTagKeysMethods inherited from interface net.minecraft.registry.RegistryWrapper.ImplwithFeatureFilter, withPredicateFilter
- 
Field Details- 
key- Mappings:
- Namespace - Name - Mixin selector - named - key- Lnet/minecraft/registry/SimpleRegistry;key:Lnet/minecraft/registry/RegistryKey;- intermediary - field_41126- Lnet/minecraft/class_2370;field_41126:Lnet/minecraft/class_5321;- official - b- Ljo;b:Lalq;
 
- 
rawIdToEntry- Mappings:
- Namespace - Name - Mixin selector - named - rawIdToEntry- Lnet/minecraft/registry/SimpleRegistry;rawIdToEntry:Lit/unimi/dsi/fastutil/objects/ObjectList;- intermediary - field_26682- Lnet/minecraft/class_2370;field_26682:Lit/unimi/dsi/fastutil/objects/ObjectList;- official - c- Ljo;c:Lit/unimi/dsi/fastutil/objects/ObjectList;
 
- 
entryToRawId- Mappings:
- Namespace - Name - Mixin selector - named - entryToRawId- Lnet/minecraft/registry/SimpleRegistry;entryToRawId:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;- intermediary - field_26683- Lnet/minecraft/class_2370;field_26683:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;- official - d- Ljo;d:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;
 
- 
idToEntry- Mappings:
- Namespace - Name - Mixin selector - named - idToEntry- Lnet/minecraft/registry/SimpleRegistry;idToEntry:Ljava/util/Map;- intermediary - field_11107- Lnet/minecraft/class_2370;field_11107:Ljava/util/Map;- official - e- Ljo;e:Ljava/util/Map;
 
- 
keyToEntry- Mappings:
- Namespace - Name - Mixin selector - named - keyToEntry- Lnet/minecraft/registry/SimpleRegistry;keyToEntry:Ljava/util/Map;- intermediary - field_25067- Lnet/minecraft/class_2370;field_25067:Ljava/util/Map;- official - f- Ljo;f:Ljava/util/Map;
 
- 
valueToEntry- Mappings:
- Namespace - Name - Mixin selector - named - valueToEntry- Lnet/minecraft/registry/SimpleRegistry;valueToEntry:Ljava/util/Map;- intermediary - field_36461- Lnet/minecraft/class_2370;field_36461:Ljava/util/Map;- official - g- Ljo;g:Ljava/util/Map;
 
- 
keyToEntryInfo- Mappings:
- Namespace - Name - Mixin selector - named - keyToEntryInfo- Lnet/minecraft/registry/SimpleRegistry;keyToEntryInfo:Ljava/util/Map;- intermediary - field_49135- Lnet/minecraft/class_2370;field_49135:Ljava/util/Map;- official - h- Ljo;h:Ljava/util/Map;
 
- 
lifecycleprivate com.mojang.serialization.Lifecycle lifecycle- Mappings:
- Namespace - Name - Mixin selector - named - lifecycle- Lnet/minecraft/registry/SimpleRegistry;lifecycle:Lcom/mojang/serialization/Lifecycle;- intermediary - field_26732- Lnet/minecraft/class_2370;field_26732:Lcom/mojang/serialization/Lifecycle;- official - i- Ljo;i:Lcom/mojang/serialization/Lifecycle;
 
- 
tags- Mappings:
- Namespace - Name - Mixin selector - named - tags- Lnet/minecraft/registry/SimpleRegistry;tags:Ljava/util/Map;- intermediary - field_53686- Lnet/minecraft/class_2370;field_53686:Ljava/util/Map;- official - j- Ljo;j:Ljava/util/Map;
 
- 
tagLookupSimpleRegistry.TagLookup<T> tagLookup- Mappings:
- Namespace - Name - Mixin selector - named - tagLookup- Lnet/minecraft/registry/SimpleRegistry;tagLookup:Lnet/minecraft/registry/SimpleRegistry$TagLookup;- intermediary - field_53687- Lnet/minecraft/class_2370;field_53687:Lnet/minecraft/class_2370$class_10105;- official - k- Ljo;k:Ljo$a;
 
- 
frozenprivate boolean frozen- Mappings:
- Namespace - Name - Mixin selector - named - frozen- Lnet/minecraft/registry/SimpleRegistry;frozen:Z- intermediary - field_36463- Lnet/minecraft/class_2370;field_36463:Z- official - l- Ljo;l:Z
 
- 
intrusiveValueToEntry- Mappings:
- Namespace - Name - Mixin selector - named - intrusiveValueToEntry- Lnet/minecraft/registry/SimpleRegistry;intrusiveValueToEntry:Ljava/util/Map;- intermediary - field_40584- Lnet/minecraft/class_2370;field_40584:Ljava/util/Map;- official - m- Ljo;m:Ljava/util/Map;
 
 
- 
- 
Constructor Details- 
SimpleRegistrypublic SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;)V- intermediary - <init>- Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;)V- official - <init>- Ljo;<init>(Lalq;Lcom/mojang/serialization/Lifecycle;)V
 
- 
SimpleRegistrypublic SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) - Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Z)V- intermediary - <init>- Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Z)V- official - <init>- Ljo;<init>(Lalq;Lcom/mojang/serialization/Lifecycle;Z)V
 
 
- 
- 
Method Details- 
getTags- Specified by:
- getTagsin interface- RegistryWrapper<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getTags- Lnet/minecraft/registry/RegistryWrapper;getTags()Ljava/util/stream/Stream;- intermediary - method_42020- Lnet/minecraft/class_7225;method_42020()Ljava/util/stream/Stream;- official - e- Lji;e()Ljava/util/stream/Stream;
 
- 
getKey- Specified by:
- getKeyin interface- Registry<T>
- Specified by:
- getKeyin interface- RegistryWrapper.Impl<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getKey- Lnet/minecraft/registry/RegistryWrapper$Impl;getKey()Lnet/minecraft/registry/RegistryKey;- intermediary - method_46765- Lnet/minecraft/class_7225$class_7226;method_46765()Lnet/minecraft/class_5321;- official - g- Lji$b;g()Lalq;
 
- 
toString
- 
assertNotFrozenprivate void assertNotFrozen()- Mappings:
- Namespace - Name - Mixin selector - named - assertNotFrozen- Lnet/minecraft/registry/SimpleRegistry;assertNotFrozen()V- intermediary - method_45939- Lnet/minecraft/class_2370;method_45939()V- official - b- Ljo;b()V
 
- 
assertNotFrozen- Mappings:
- Namespace - Name - Mixin selector - named - assertNotFrozen- Lnet/minecraft/registry/SimpleRegistry;assertNotFrozen(Lnet/minecraft/registry/RegistryKey;)V- intermediary - method_40274- Lnet/minecraft/class_2370;method_40274(Lnet/minecraft/class_5321;)V- official - h- Ljo;h(Lalq;)V
 
- 
add- Specified by:
- addin interface- MutableRegistry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - add- Lnet/minecraft/registry/MutableRegistry;add(Lnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lnet/minecraft/registry/entry/RegistryEntryInfo;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_10272- Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lnet/minecraft/class_9248;)Lnet/minecraft/class_6880$class_6883;- official - a- Lkc;a(Lalq;Ljava/lang/Object;Ljs;)Ljg$c;
 
- 
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 - named - getId- Lnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;- intermediary - method_10221- Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;- official - b- Ljt;b(Ljava/lang/Object;)Lalr;
 
- 
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 - named - getKey- Lnet/minecraft/registry/Registry;getKey(Ljava/lang/Object;)Ljava/util/Optional;- intermediary - method_29113- Lnet/minecraft/class_2378;method_29113(Ljava/lang/Object;)Ljava/util/Optional;- official - d- Ljt;d(Ljava/lang/Object;)Ljava/util/Optional;
 
- 
getRawId- Specified by:
- getRawIdin interface- IndexedIterable<T>
- Specified by:
- getRawIdin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getRawId- Lnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I- intermediary - method_10206- Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)I- official - a- Ljl;a(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 - named - get- Lnet/minecraft/registry/Registry;get(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/Object;- intermediary - method_29107- Lnet/minecraft/class_2378;method_29107(Lnet/minecraft/class_5321;)Ljava/lang/Object;- official - c- Ljt;c(Lalq;)Ljava/lang/Object;
 
- 
get- Specified by:
- getin interface- IndexedIterable<T>
- Mappings:
- Namespace - Name - Mixin selector - named - get- Lnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;- intermediary - method_10200- Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;- official - a- Ljl;a(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 - named - getEntry- Lnet/minecraft/registry/Registry;getEntry(I)Ljava/util/Optional;- intermediary - method_40265- Lnet/minecraft/class_2378;method_40265(I)Ljava/util/Optional;- official - c- Ljt;c(I)Ljava/util/Optional;
 
- 
getEntryReturns the reference registry entry for the value that is assignedid, or an empty optional if there is no such value.- Specified by:
- getEntryin interface- Registry<T>
- Returns:
- the reference registry entry for the value that is assigned id, or an empty optional if there is no such value
- Mappings:
- Namespace - Name - Mixin selector - named - getEntry- Lnet/minecraft/registry/Registry;getEntry(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;- intermediary - method_10223- Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/util/Optional;- official - c- Ljt;c(Lalr;)Ljava/util/Optional;
 
- 
getOptional- Specified by:
- getOptionalin interface- RegistryEntryLookup<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getOptional- Lnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;- intermediary - method_46746- Lnet/minecraft/class_7871;method_46746(Lnet/minecraft/class_5321;)Ljava/util/Optional;- official - a- Ljh;a(Lalq;)Ljava/util/Optional;
 
- 
getDefaultEntry- Specified by:
- getDefaultEntryin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getDefaultEntry- Lnet/minecraft/registry/Registry;getDefaultEntry()Ljava/util/Optional;- intermediary - method_60385- Lnet/minecraft/class_2378;method_60385()Ljava/util/Optional;- official - a- Ljt;a()Ljava/util/Optional;
 
- 
getEntry- Specified by:
- getEntryin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getEntry- Lnet/minecraft/registry/Registry;getEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry;- intermediary - method_47983- Lnet/minecraft/class_2378;method_47983(Ljava/lang/Object;)Lnet/minecraft/class_6880;- official - e- Ljt;e(Ljava/lang/Object;)Ljg;
 
- 
getOrCreateEntry- Mappings:
- Namespace - Name - Mixin selector - named - getOrCreateEntry- Lnet/minecraft/registry/SimpleRegistry;getOrCreateEntry(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_44298- Lnet/minecraft/class_2370;method_44298(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;- official - i- Ljo;i(Lalq;)Ljg$c;
 
- 
sizepublic int size()- Specified by:
- sizein interface- IndexedIterable<T>
- Mappings:
- Namespace - Name - Mixin selector - named - size- Lnet/minecraft/util/collection/IndexedIterable;size()I- intermediary - method_10204- Lnet/minecraft/class_2359;method_10204()I- official - d- Ljl;d()I
 
- 
getEntryInfo- Specified by:
- getEntryInfoin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getEntryInfo- Lnet/minecraft/registry/Registry;getEntryInfo(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;- intermediary - method_57058- Lnet/minecraft/class_2378;method_57058(Lnet/minecraft/class_5321;)Ljava/util/Optional;- official - d- Ljt;d(Lalq;)Ljava/util/Optional;
 
- 
getLifecyclepublic com.mojang.serialization.Lifecycle getLifecycle()- Specified by:
- getLifecyclein interface- RegistryWrapper.Impl<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getLifecycle- Lnet/minecraft/registry/RegistryWrapper$Impl;getLifecycle()Lcom/mojang/serialization/Lifecycle;- intermediary - method_46766- Lnet/minecraft/class_7225$class_7226;method_46766()Lcom/mojang/serialization/Lifecycle;- official - h- Lji$b;h()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 - named - get- Lnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;- intermediary - method_63535- Lnet/minecraft/class_2378;method_63535(Lnet/minecraft/class_2960;)Ljava/lang/Object;- official - a- Ljt;a(Lalr;)Ljava/lang/Object;
 
- 
getValue- Mappings:
- Namespace - Name - Mixin selector - named - getValue- Lnet/minecraft/registry/SimpleRegistry;getValue(Lnet/minecraft/registry/entry/RegistryEntry$Reference;)Ljava/lang/Object;- intermediary - method_40253- Lnet/minecraft/class_2370;method_40253(Lnet/minecraft/class_6880$class_6883;)Ljava/lang/Object;- official - a- Ljo;a(Ljg$c;)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 - named - getIds- Lnet/minecraft/registry/Registry;getIds()Ljava/util/Set;- intermediary - method_10235- Lnet/minecraft/class_2378;method_10235()Ljava/util/Set;- official - i- Ljt;i()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 - named - getKeys- Lnet/minecraft/registry/Registry;getKeys()Ljava/util/Set;- intermediary - method_42021- Lnet/minecraft/class_2378;method_42021()Ljava/util/Set;- official - j- Ljt;j()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 - named - getEntrySet- Lnet/minecraft/registry/Registry;getEntrySet()Ljava/util/Set;- intermediary - method_29722- Lnet/minecraft/class_2378;method_29722()Ljava/util/Set;- official - k- Ljt;k()Ljava/util/Set;
 
- 
streamEntriesReturns a stream of registry keys defined in the wrapped registry.- Specified by:
- streamEntriesin interface- RegistryWrapper<T>
- Returns:
- a stream of registry keys defined in the wrapped registry
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - streamEntries- Lnet/minecraft/registry/RegistryWrapper;streamEntries()Ljava/util/stream/Stream;- intermediary - method_42017- Lnet/minecraft/class_7225;method_42017()Ljava/util/stream/Stream;- official - c- Lji;c()Ljava/util/stream/Stream;
 
- 
streamTags- Specified by:
- streamTagsin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - streamTags- Lnet/minecraft/registry/Registry;streamTags()Ljava/util/stream/Stream;- intermediary - method_40272- Lnet/minecraft/class_2378;method_40272()Ljava/util/stream/Stream;- official - l- Ljt;l()Ljava/util/stream/Stream;
 
- 
getTag- Mappings:
- Namespace - Name - Mixin selector - named - getTag- Lnet/minecraft/registry/SimpleRegistry;getTag(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;- intermediary - method_62690- Lnet/minecraft/class_2370;method_62690(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;- official - d- Ljo;d(Layc;)Ljk$c;
 
- 
createNamedEntryList- Mappings:
- Namespace - Name - Mixin selector - named - createNamedEntryList- Lnet/minecraft/registry/SimpleRegistry;createNamedEntryList(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;- intermediary - method_40562- Lnet/minecraft/class_2370;method_40562(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;- official - e- Ljo;e(Layc;)Ljk$c;
 
- 
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 - named - isEmpty- Lnet/minecraft/registry/MutableRegistry;isEmpty()Z- intermediary - method_35863- Lnet/minecraft/class_2385;method_35863()Z- official - m- Lkc;m()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 - named - getRandom- Lnet/minecraft/registry/Registry;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;- intermediary - method_10240- Lnet/minecraft/class_2378;method_10240(Lnet/minecraft/class_5819;)Ljava/util/Optional;- official - a- Ljt;a(Lbai;)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 - named - containsId- Lnet/minecraft/registry/Registry;containsId(Lnet/minecraft/util/Identifier;)Z- intermediary - method_10250- Lnet/minecraft/class_2378;method_10250(Lnet/minecraft/class_2960;)Z- official - d- Ljt;d(Lalr;)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 - named - contains- Lnet/minecraft/registry/Registry;contains(Lnet/minecraft/registry/RegistryKey;)Z- intermediary - method_35842- Lnet/minecraft/class_2378;method_35842(Lnet/minecraft/class_5321;)Z- official - e- Ljt;e(Lalq;)Z
 
- 
freeze
- 
createEntry- Specified by:
- createEntryin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - createEntry- Lnet/minecraft/registry/Registry;createEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_40269- Lnet/minecraft/class_2378;method_40269(Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;- official - f- Ljt;f(Ljava/lang/Object;)Ljg$c;
 
- 
getOptional- Specified by:
- getOptionalin interface- RegistryEntryLookup<T>
- Mappings:
- Namespace - Name - Mixin selector - named - getOptional- Lnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;- intermediary - method_46733- Lnet/minecraft/class_7871;method_46733(Lnet/minecraft/class_6862;)Ljava/util/Optional;- official - a- Ljh;a(Layc;)Ljava/util/Optional;
 
- 
ensureTagable- Mappings:
- Namespace - Name - Mixin selector - named - ensureTagable- Lnet/minecraft/registry/SimpleRegistry;ensureTagable(Lnet/minecraft/registry/tag/TagKey;Lnet/minecraft/registry/entry/RegistryEntry;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;- intermediary - method_62682- Lnet/minecraft/class_2370;method_62682(Lnet/minecraft/class_6862;Lnet/minecraft/class_6880;)Lnet/minecraft/class_6880$class_6883;- official - a- Ljo;a(Layc;Ljg;)Ljg$c;
 
- 
setEntries- Specified by:
- setEntriesin interface- MutableRegistry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - setEntries- Lnet/minecraft/registry/MutableRegistry;setEntries(Lnet/minecraft/registry/tag/TagKey;Ljava/util/List;)V- intermediary - method_62681- Lnet/minecraft/class_2385;method_62681(Lnet/minecraft/class_6862;Ljava/util/List;)V- official - a- Lkc;a(Layc;Ljava/util/List;)V
 
- 
refreshTagsvoid refreshTags()- Mappings:
- Namespace - Name - Mixin selector - named - refreshTags- Lnet/minecraft/registry/SimpleRegistry;refreshTags()V- intermediary - method_62692- Lnet/minecraft/class_2370;method_62692()V- official - u- Ljo;u()V
 
- 
resetTagEntriespublic void resetTagEntries()- Mappings:
- Namespace - Name - Mixin selector - named - resetTagEntries- Lnet/minecraft/registry/SimpleRegistry;resetTagEntries()V- intermediary - method_62691- Lnet/minecraft/class_2370;method_62691()V- official - o- Ljo;o()V
 
- 
createMutableRegistryLookup- Specified by:
- createMutableRegistryLookupin interface- MutableRegistry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - createMutableRegistryLookup- Lnet/minecraft/registry/MutableRegistry;createMutableRegistryLookup()Lnet/minecraft/registry/RegistryEntryLookup;- intermediary - method_46769- Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;- official - p- Lkc;p()Ljh;
 
- 
startTagReload- Specified by:
- startTagReloadin interface- Registry<T>
- Mappings:
- Namespace - Name - Mixin selector - named - startTagReload- Lnet/minecraft/registry/Registry;startTagReload(Lnet/minecraft/registry/tag/TagGroupLoader$RegistryTags;)Lnet/minecraft/registry/Registry$PendingTagLoad;- intermediary - method_62683- Lnet/minecraft/class_2378;method_62683(Lnet/minecraft/class_3503$class_6863;)Lnet/minecraft/class_2378$class_10106;- official - a- Ljt;a(Layd$c;)Ljt$a;
 
 
-