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 ivintermediary net/minecraft/class_2370named net/minecraft/registry/SimpleRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Reference2IntMap<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 final Map<RegistryKey<T>, RegistryEntryInfo> private com.mojang.serialization.Lifecycleprivate static final Loggerprivate 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.IndexedIterable
ABSENT_RAW_ID -
Constructor Summary
ConstructorsConstructorDescriptionSimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) -
Method Summary
Modifier and TypeMethodDescriptionadd(RegistryKey<T> key, T value, RegistryEntryInfo info) 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.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.getEntry(Identifier id) getEntryInfo(RegistryKey<T> key) 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) 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrow, getRawIdOrThrowMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface net.minecraft.registry.Registry
entryOf, getCodec, getEntryCodec, getIndexedEntries, getOrEmpty, getOrEmpty, getOrThrow, getRandomEntry, getTagCreatingWrapper, iterateEntries, keys, stream
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLiv;b:Lorg/slf4j/Logger;intermediary field_36635Lnet/minecraft/class_2370;field_36635:Lorg/slf4j/Logger;named LOGGERLnet/minecraft/registry/SimpleRegistry;LOGGER:Lorg/slf4j/Logger;
-
key
- Mappings:
Namespace Name Mixin selector official cLiv;c:Laju;intermediary field_41126Lnet/minecraft/class_2370;field_41126:Lnet/minecraft/class_5321;named keyLnet/minecraft/registry/SimpleRegistry;key:Lnet/minecraft/registry/RegistryKey;
-
rawIdToEntry
- Mappings:
Namespace Name Mixin selector official dLiv;d:Lit/unimi/dsi/fastutil/objects/ObjectList;intermediary field_26682Lnet/minecraft/class_2370;field_26682:Lit/unimi/dsi/fastutil/objects/ObjectList;named rawIdToEntryLnet/minecraft/registry/SimpleRegistry;rawIdToEntry:Lit/unimi/dsi/fastutil/objects/ObjectList;
-
entryToRawId
- Mappings:
Namespace Name Mixin selector official eLiv;e:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;intermediary field_26683Lnet/minecraft/class_2370;field_26683:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;named entryToRawIdLnet/minecraft/registry/SimpleRegistry;entryToRawId:Lit/unimi/dsi/fastutil/objects/Reference2IntMap;
-
idToEntry
- Mappings:
Namespace Name Mixin selector official fLiv;f:Ljava/util/Map;intermediary field_11107Lnet/minecraft/class_2370;field_11107:Ljava/util/Map;named idToEntryLnet/minecraft/registry/SimpleRegistry;idToEntry:Ljava/util/Map;
-
keyToEntry
- Mappings:
Namespace Name Mixin selector official gLiv;g:Ljava/util/Map;intermediary field_25067Lnet/minecraft/class_2370;field_25067:Ljava/util/Map;named keyToEntryLnet/minecraft/registry/SimpleRegistry;keyToEntry:Ljava/util/Map;
-
valueToEntry
- Mappings:
Namespace Name Mixin selector official hLiv;h:Ljava/util/Map;intermediary field_36461Lnet/minecraft/class_2370;field_36461:Ljava/util/Map;named valueToEntryLnet/minecraft/registry/SimpleRegistry;valueToEntry:Ljava/util/Map;
-
keyToEntryInfo
- Mappings:
Namespace Name Mixin selector official iLiv;i:Ljava/util/Map;intermediary field_49135Lnet/minecraft/class_2370;field_49135:Ljava/util/Map;named keyToEntryInfoLnet/minecraft/registry/SimpleRegistry;keyToEntryInfo:Ljava/util/Map;
-
lifecycle
private com.mojang.serialization.Lifecycle lifecycle- Mappings:
Namespace Name Mixin selector official jLiv;j:Lcom/mojang/serialization/Lifecycle;intermediary field_26732Lnet/minecraft/class_2370;field_26732:Lcom/mojang/serialization/Lifecycle;named lifecycleLnet/minecraft/registry/SimpleRegistry;lifecycle:Lcom/mojang/serialization/Lifecycle;
-
tagToEntryList
- Mappings:
Namespace Name Mixin selector official kLiv;k:Ljava/util/Map;intermediary field_36462Lnet/minecraft/class_2370;field_36462:Ljava/util/Map;named tagToEntryListLnet/minecraft/registry/SimpleRegistry;tagToEntryList:Ljava/util/Map;
-
frozen
private boolean frozen- Mappings:
Namespace Name Mixin selector official lLiv;l:Zintermediary field_36463Lnet/minecraft/class_2370;field_36463:Znamed frozenLnet/minecraft/registry/SimpleRegistry;frozen:Z
-
intrusiveValueToEntry
- Mappings:
Namespace Name Mixin selector official mLiv;m:Ljava/util/Map;intermediary field_40584Lnet/minecraft/class_2370;field_40584:Ljava/util/Map;named intrusiveValueToEntryLnet/minecraft/registry/SimpleRegistry;intrusiveValueToEntry:Ljava/util/Map;
-
wrapper
- Mappings:
Namespace Name Mixin selector official nLiv;n:Lip$b;intermediary field_41127Lnet/minecraft/class_2370;field_41127:Lnet/minecraft/class_7225$class_7226;named wrapperLnet/minecraft/registry/SimpleRegistry;wrapper:Lnet/minecraft/registry/RegistryWrapper$Impl;
-
-
Constructor Details
-
SimpleRegistry
public SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle) - Mappings:
Namespace Name Mixin selector official <init>Liv;<init>(Laju;Lcom/mojang/serialization/Lifecycle;)Vintermediary <init>Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;)Vnamed <init>Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;)V
-
SimpleRegistry
public SimpleRegistry(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive) - Mappings:
Namespace Name Mixin selector official <init>Liv;<init>(Laju;Lcom/mojang/serialization/Lifecycle;Z)Vintermediary <init>Lnet/minecraft/class_2370;<init>(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Lifecycle;Z)Vnamed <init>Lnet/minecraft/registry/SimpleRegistry;<init>(Lnet/minecraft/registry/RegistryKey;Lcom/mojang/serialization/Lifecycle;Z)V
-
-
Method Details
-
getKey
Returns the registry key that identifies this registry.- Specified by:
getKeyin interfaceRegistry<T>- Returns:
- the registry key that identifies this registry
- Mappings:
Namespace Name Mixin selector official cLja;c()Laju;intermediary method_30517Lnet/minecraft/class_2378;method_30517()Lnet/minecraft/class_5321;named getKeyLnet/minecraft/registry/Registry;getKey()Lnet/minecraft/registry/RegistryKey;
-
toString
-
assertNotFrozen
private void assertNotFrozen()- Mappings:
Namespace Name Mixin selector official aLiv;a()Vintermediary method_45939Lnet/minecraft/class_2370;method_45939()Vnamed assertNotFrozenLnet/minecraft/registry/SimpleRegistry;assertNotFrozen()V
-
assertNotFrozen
- Mappings:
Namespace Name Mixin selector official hLiv;h(Laju;)Vintermediary method_40274Lnet/minecraft/class_2370;method_40274(Lnet/minecraft/class_5321;)Vnamed assertNotFrozenLnet/minecraft/registry/SimpleRegistry;assertNotFrozen(Lnet/minecraft/registry/RegistryKey;)V
-
add
- Specified by:
addin interfaceMutableRegistry<T>- Mappings:
Namespace Name Mixin selector official aLjj;a(Laju;Ljava/lang/Object;Liz;)Lin$c;intermediary method_10272Lnet/minecraft/class_2385;method_10272(Lnet/minecraft/class_5321;Ljava/lang/Object;Lnet/minecraft/class_9248;)Lnet/minecraft/class_6880$class_6883;named addLnet/minecraft/registry/MutableRegistry;add(Lnet/minecraft/registry/RegistryKey;Ljava/lang/Object;Lnet/minecraft/registry/entry/RegistryEntryInfo;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getId
Returns the ID assigned tovalue, ornullif it is not registered.- Specified by:
getIdin interfaceRegistry<T>- Returns:
- the ID assigned to
value, ornullif it is not registered - Mappings:
Namespace Name Mixin selector official bLja;b(Ljava/lang/Object;)Lajv;intermediary method_10221Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;named getIdLnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;
-
getKey
Returns the registry key ofvalue, or an empty optional if it is not registered.- Specified by:
getKeyin interfaceRegistry<T>- Returns:
- the registry key of
value, or an empty optional if it is not registered - Mappings:
Namespace Name Mixin selector official dLja;d(Ljava/lang/Object;)Ljava/util/Optional;intermediary method_29113Lnet/minecraft/class_2378;method_29113(Ljava/lang/Object;)Ljava/util/Optional;named getKeyLnet/minecraft/registry/Registry;getKey(Ljava/lang/Object;)Ljava/util/Optional;
-
getRawId
- Specified by:
getRawIdin interfaceIndexedIterable<T>- Specified by:
getRawIdin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official aLis;a(Ljava/lang/Object;)Iintermediary method_10206Lnet/minecraft/class_2359;method_10206(Ljava/lang/Object;)Inamed getRawIdLnet/minecraft/util/collection/IndexedIterable;getRawId(Ljava/lang/Object;)I
-
get
Returns the value that is assignedkey, ornullif there is none.- Specified by:
getin interfaceRegistry<T>- Returns:
- the value that is assigned
key, ornullif there is none - Mappings:
Namespace Name Mixin selector official aLja;a(Laju;)Ljava/lang/Object;intermediary method_29107Lnet/minecraft/class_2378;method_29107(Lnet/minecraft/class_5321;)Ljava/lang/Object;named getLnet/minecraft/registry/Registry;get(Lnet/minecraft/registry/RegistryKey;)Ljava/lang/Object;
-
get
- Specified by:
getin interfaceIndexedIterable<T>- Mappings:
Namespace Name Mixin selector official aLis;a(I)Ljava/lang/Object;intermediary method_10200Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;named getLnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;
-
getEntry
Returns the reference registry entry for the value assignedrawId, or an empty optional if there is no such value.- Specified by:
getEntryin interfaceRegistry<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 cLja;c(I)Ljava/util/Optional;intermediary method_40265Lnet/minecraft/class_2378;method_40265(I)Ljava/util/Optional;named getEntryLnet/minecraft/registry/Registry;getEntry(I)Ljava/util/Optional;
-
getEntry
- Specified by:
getEntryin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official cLja;c(Lajv;)Ljava/util/Optional;intermediary method_55841Lnet/minecraft/class_2378;method_55841(Lnet/minecraft/class_2960;)Ljava/util/Optional;named getEntryLnet/minecraft/registry/Registry;getEntry(Lnet/minecraft/util/Identifier;)Ljava/util/Optional;
-
getEntry
Returns the reference registry entry for the value assignedkey, or an empty optional if there is no such value.- Specified by:
getEntryin interfaceRegistry<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 bLja;b(Laju;)Ljava/util/Optional;intermediary method_40264Lnet/minecraft/class_2378;method_40264(Lnet/minecraft/class_5321;)Ljava/util/Optional;named getEntryLnet/minecraft/registry/Registry;getEntry(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
-
getEntry
- Specified by:
getEntryin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official eLja;e(Ljava/lang/Object;)Lin;intermediary method_47983Lnet/minecraft/class_2378;method_47983(Ljava/lang/Object;)Lnet/minecraft/class_6880;named getEntryLnet/minecraft/registry/Registry;getEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry;
-
getOrCreateEntry
- Mappings:
Namespace Name Mixin selector official iLiv;i(Laju;)Lin$c;intermediary method_44298Lnet/minecraft/class_2370;method_44298(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;named getOrCreateEntryLnet/minecraft/registry/SimpleRegistry;getOrCreateEntry(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
size
public int size()- Specified by:
sizein interfaceIndexedIterable<T>- Mappings:
Namespace Name Mixin selector official bLis;b()Iintermediary method_10204Lnet/minecraft/class_2359;method_10204()Inamed sizeLnet/minecraft/util/collection/IndexedIterable;size()I
-
getEntryInfo
- Specified by:
getEntryInfoin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official cLja;c(Laju;)Ljava/util/Optional;intermediary method_57058Lnet/minecraft/class_2378;method_57058(Lnet/minecraft/class_5321;)Ljava/util/Optional;named getEntryInfoLnet/minecraft/registry/Registry;getEntryInfo(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
-
getLifecycle
public com.mojang.serialization.Lifecycle getLifecycle()- Specified by:
getLifecyclein interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official dLja;d()Lcom/mojang/serialization/Lifecycle;intermediary method_31138Lnet/minecraft/class_2378;method_31138()Lcom/mojang/serialization/Lifecycle;named getLifecycleLnet/minecraft/registry/Registry;getLifecycle()Lcom/mojang/serialization/Lifecycle;
-
iterator
-
get
Returns the value that is assignedid, ornullif there is none.- Specified by:
getin interfaceRegistry<T>- Returns:
- the value that is assigned
id, ornullif there is none - Mappings:
Namespace Name Mixin selector official aLja;a(Lajv;)Ljava/lang/Object;intermediary method_10223Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/lang/Object;named getLnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;
-
getValue
- Mappings:
Namespace Name Mixin selector official aLiv;a(Lin$c;)Ljava/lang/Object;intermediary method_40253Lnet/minecraft/class_2370;method_40253(Lnet/minecraft/class_6880$class_6883;)Ljava/lang/Object;named getValueLnet/minecraft/registry/SimpleRegistry;getValue(Lnet/minecraft/registry/entry/RegistryEntry$Reference;)Ljava/lang/Object;
-
getIds
Returns the set of all IDs registered in a registry.- Specified by:
getIdsin interfaceRegistry<T>- Returns:
- the set of all IDs registered in a registry
- Mappings:
Namespace Name Mixin selector official eLja;e()Ljava/util/Set;intermediary method_10235Lnet/minecraft/class_2378;method_10235()Ljava/util/Set;named getIdsLnet/minecraft/registry/Registry;getIds()Ljava/util/Set;
-
getKeys
Returns the set of all registry keys registered in a registry.- Specified by:
getKeysin interfaceRegistry<T>- Returns:
- the set of all registry keys registered in a registry
- Mappings:
Namespace Name Mixin selector official fLja;f()Ljava/util/Set;intermediary method_42021Lnet/minecraft/class_2378;method_42021()Ljava/util/Set;named getKeysLnet/minecraft/registry/Registry;getKeys()Ljava/util/Set;
-
getEntrySet
Returns the set containingMap.Entryof the registry keys and values registered in this registry.- Specified by:
getEntrySetin interfaceRegistry<T>- Returns:
- the set containing
Map.Entryof the registry keys and values registered in this registry - Mappings:
Namespace Name Mixin selector official gLja;g()Ljava/util/Set;intermediary method_29722Lnet/minecraft/class_2378;method_29722()Ljava/util/Set;named getEntrySetLnet/minecraft/registry/Registry;getEntrySet()Ljava/util/Set;
-
streamEntries
Returns a stream of reference registry entries of this registry.- Specified by:
streamEntriesin interfaceRegistry<T>- Returns:
- a stream of reference registry entries of this registry
- Mappings:
Namespace Name Mixin selector official hLja;h()Ljava/util/stream/Stream;intermediary method_40270Lnet/minecraft/class_2378;method_40270()Ljava/util/stream/Stream;named streamEntriesLnet/minecraft/registry/Registry;streamEntries()Ljava/util/stream/Stream;
-
streamTagsAndEntries
public Stream<com.mojang.datafixers.util.Pair<TagKey<T>,RegistryEntryList.Named<T>>> streamTagsAndEntries()- Specified by:
streamTagsAndEntriesin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official iLja;i()Ljava/util/stream/Stream;intermediary method_40272Lnet/minecraft/class_2378;method_40272()Ljava/util/stream/Stream;named streamTagsAndEntriesLnet/minecraft/registry/Registry;streamTagsAndEntries()Ljava/util/stream/Stream;
-
getOrCreateEntryList
- Specified by:
getOrCreateEntryListin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official aLja;a(Lavt;)Lir$c;intermediary method_40260Lnet/minecraft/class_2378;method_40260(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;named getOrCreateEntryListLnet/minecraft/registry/Registry;getOrCreateEntryList(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;
-
createNamedEntryList
- Mappings:
Namespace Name Mixin selector official dLiv;d(Lavt;)Lir$c;intermediary method_40562Lnet/minecraft/class_2370;method_40562(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;named createNamedEntryListLnet/minecraft/registry/SimpleRegistry;createNamedEntryList(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;
-
streamTags
Returns a stream of all tag keys known to this registry.- Specified by:
streamTagsin interfaceRegistry<T>- Returns:
- a stream of all tag keys known to this registry
- Mappings:
Namespace Name Mixin selector official jLja;j()Ljava/util/stream/Stream;intermediary method_40273Lnet/minecraft/class_2378;method_40273()Ljava/util/stream/Stream;named streamTagsLnet/minecraft/registry/Registry;streamTags()Ljava/util/stream/Stream;
-
isEmpty
public boolean isEmpty()Returns whether the registry is empty.- Specified by:
isEmptyin interfaceMutableRegistry<T>- Returns:
- whether the registry is empty
- Mappings:
Namespace Name Mixin selector official kLjj;k()Zintermediary method_35863Lnet/minecraft/class_2385;method_35863()Znamed isEmptyLnet/minecraft/registry/MutableRegistry;isEmpty()Z
-
getRandom
Returns a random registry entry from this registry, or an empty optional if the registry is empty.- Specified by:
getRandomin interfaceRegistry<T>- Returns:
- a random registry entry from this registry, or an empty optional if the registry is empty
- Mappings:
Namespace Name Mixin selector official aLja;a(Laxt;)Ljava/util/Optional;intermediary method_10240Lnet/minecraft/class_2378;method_10240(Lnet/minecraft/class_5819;)Ljava/util/Optional;named getRandomLnet/minecraft/registry/Registry;getRandom(Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;
-
containsId
Returns whetheridis registered in this registry.- Specified by:
containsIdin interfaceRegistry<T>- Returns:
- whether
idis registered in this registry - Mappings:
Namespace Name Mixin selector official dLja;d(Lajv;)Zintermediary method_10250Lnet/minecraft/class_2378;method_10250(Lnet/minecraft/class_2960;)Znamed containsIdLnet/minecraft/registry/Registry;containsId(Lnet/minecraft/util/Identifier;)Z
-
contains
Returns whetherkeyis registered in this registry.- Specified by:
containsin interfaceRegistry<T>- Returns:
- whether
keyis registered in this registry - Mappings:
Namespace Name Mixin selector official dLja;d(Laju;)Zintermediary method_35842Lnet/minecraft/class_2378;method_35842(Lnet/minecraft/class_5321;)Znamed containsLnet/minecraft/registry/Registry;contains(Lnet/minecraft/registry/RegistryKey;)Z
-
freeze
-
createEntry
- Specified by:
createEntryin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official fLja;f(Ljava/lang/Object;)Lin$c;intermediary method_40269Lnet/minecraft/class_2378;method_40269(Ljava/lang/Object;)Lnet/minecraft/class_6880$class_6883;named createEntryLnet/minecraft/registry/Registry;createEntry(Ljava/lang/Object;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;
-
getEntryList
Returns 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 interfaceRegistry<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 bLja;b(Lavt;)Ljava/util/Optional;intermediary method_40266Lnet/minecraft/class_2378;method_40266(Lnet/minecraft/class_6862;)Ljava/util/Optional;named getEntryListLnet/minecraft/registry/Registry;getEntryList(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;
-
populateTags
- Specified by:
populateTagsin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official aLja;a(Ljava/util/Map;)Vintermediary method_40257Lnet/minecraft/class_2378;method_40257(Ljava/util/Map;)Vnamed populateTagsLnet/minecraft/registry/Registry;populateTags(Ljava/util/Map;)V
-
clearTags
public void clearTags() -
createMutableEntryLookup
- Specified by:
createMutableEntryLookupin interfaceMutableRegistry<T>- Mappings:
Namespace Name Mixin selector official nLjj;n()Lio;intermediary method_46769Lnet/minecraft/class_2385;method_46769()Lnet/minecraft/class_7871;named createMutableEntryLookupLnet/minecraft/registry/MutableRegistry;createMutableEntryLookup()Lnet/minecraft/registry/RegistryEntryLookup;
-
getEntryOwner
- Specified by:
getEntryOwnerin interfaceRegistry<T>- Mappings:
Namespace Name Mixin selector official oLja;o()Liq;intermediary method_46770Lnet/minecraft/class_2378;method_46770()Lnet/minecraft/class_7876;named getEntryOwnerLnet/minecraft/registry/Registry;getEntryOwner()Lnet/minecraft/registry/entry/RegistryEntryOwner;
-
getReadOnlyWrapper
Returns a registry wrapper that does not mutate the backing registry under any circumstances.- Specified by:
getReadOnlyWrapperin interfaceRegistry<T>- Returns:
- a registry wrapper that does not mutate the backing registry under any circumstances
- Mappings:
Namespace Name Mixin selector official pLja;p()Lip$b;intermediary method_46771Lnet/minecraft/class_2378;method_46771()Lnet/minecraft/class_7225$class_7226;named getReadOnlyWrapperLnet/minecraft/registry/Registry;getReadOnlyWrapper()Lnet/minecraft/registry/RegistryWrapper$Impl;
-