Package net.minecraft.registry
Interface DefaultedRegistry<T>
- All Superinterfaces:
IndexedIterable<T>,Iterable<T>,com.mojang.serialization.Keyable,Registry<T>
- All Known Implementing Classes:
SimpleDefaultedRegistry
- Mappings:
Namespace Name named net/minecraft/registry/DefaultedRegistryintermediary net/minecraft/class_7922official jh
-
Field Summary
Fields inherited from interface net.minecraft.util.collection.IndexedIterable
ABSENT_RAW_ID -
Method Summary
Modifier and TypeMethodDescriptionget(int index) get(@Nullable Identifier id) Returns the value that is assignedid, ornullif there is none.Returns the ID assigned tovalue, ornullif it is not registered.Methods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrow, getRawIdOrThrow, sizeMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface net.minecraft.registry.Registry
clearTags, contains, containsId, createEntry, entryOf, freeze, get, getCodec, getDefaultEntry, getEntry, getEntry, getEntry, getEntry, getEntryCodec, getEntryInfo, getEntryList, getEntryOwner, getEntrySet, getIds, getIndexedEntries, getKey, getKey, getKeys, getLifecycle, getOrCreateEntryList, getOrEmpty, getOrEmpty, getOrThrow, getRandom, getRandomEntry, getRawId, getReadOnlyWrapper, getTagCreatingWrapper, iterateEntries, keys, populateTags, stream, streamEntries, streamTags, streamTagsAndEntries
-
Method Details
-
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 named getIdLnet/minecraft/registry/Registry;getId(Ljava/lang/Object;)Lnet/minecraft/util/Identifier;intermediary method_10221Lnet/minecraft/class_2378;method_10221(Ljava/lang/Object;)Lnet/minecraft/class_2960;official bLjz;b(Ljava/lang/Object;)Lakr;
-
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 named getLnet/minecraft/registry/Registry;get(Lnet/minecraft/util/Identifier;)Ljava/lang/Object;intermediary method_10223Lnet/minecraft/class_2378;method_10223(Lnet/minecraft/class_2960;)Ljava/lang/Object;official aLjz;a(Lakr;)Ljava/lang/Object;
-
get
- Specified by:
getin interfaceIndexedIterable<T>- Mappings:
Namespace Name Mixin selector named getLnet/minecraft/util/collection/IndexedIterable;get(I)Ljava/lang/Object;intermediary method_10200Lnet/minecraft/class_2359;method_10200(I)Ljava/lang/Object;official aLjr;a(I)Ljava/lang/Object;
-
getDefaultId
Identifier getDefaultId()- Mappings:
Namespace Name Mixin selector named getDefaultIdLnet/minecraft/registry/DefaultedRegistry;getDefaultId()Lnet/minecraft/util/Identifier;intermediary method_10137Lnet/minecraft/class_7922;method_10137()Lnet/minecraft/class_2960;official bLjh;b()Lakr;
-