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 - official - gz- intermediary - net/minecraft/class_7922- named - net/minecraft/registry/DefaultedRegistry
- 
Field SummaryFields inherited from interface net.minecraft.util.collection.IndexedIterableABSENT_RAW_ID
- 
Method SummaryModifier 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.IndexedIterablegetOrThrow, sizeMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface net.minecraft.registry.RegistryclearTags, contains, containsId, createEntry, createEntryCodec, entryOf, freeze, get, getCodec, getEntry, getEntry, getEntry, getEntryLifecycle, getEntryList, getEntryOwner, getEntrySet, getIds, getIndexedEntries, getKey, getKey, getKeys, getLifecycle, getOrCreateEntryList, getOrEmpty, getOrEmpty, getOrThrow, getRandom, getRawId, getReadOnlyWrapper, getTagCreatingWrapper, iterateEntries, keys, populateTags, stream, streamEntries, streamTags, streamTagsAndEntries
- 
Method Details- 
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;
 
- 
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;
 
- 
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;
 
- 
getDefaultIdIdentifier getDefaultId()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lgz;a()Lacq;- intermediary - method_10137- Lnet/minecraft/class_7922;method_10137()Lnet/minecraft/class_2960;- named - getDefaultId- Lnet/minecraft/registry/DefaultedRegistry;getDefaultId()Lnet/minecraft/util/Identifier;
 
 
-