Package net.minecraft.registry
Interface DefaultedRegistry<T>
- All Superinterfaces:
IndexedIterable<T>
,Iterable<T>
,com.mojang.serialization.Keyable
,Registry<T>
,RegistryEntryLookup<T>
,RegistryEntryOwner<T>
,RegistryWrapper<T>
,RegistryWrapper.Impl<T>
- All Known Implementing Classes:
SimpleDefaultedRegistry
- Mappings:
Namespace Name named net/minecraft/registry/DefaultedRegistry
intermediary net/minecraft/class_7922
official jl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.registry.Registry
Registry.PendingTagLoad<T>
Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryEntryLookup
RegistryEntryLookup.RegistryLookup
Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper
RegistryWrapper.Impl<T>, RegistryWrapper.WrapperLookup
Nested classes/interfaces inherited from interface net.minecraft.registry.RegistryWrapper.Impl
RegistryWrapper.Impl.Delegating<T>
-
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
, ornull
if there is none.Returns the ID assigned tovalue
, ornull
if it is not registered.Methods inherited from interface net.minecraft.util.collection.IndexedIterable
getOrThrow, getRawIdOrThrow, size
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface net.minecraft.registry.Registry
contains, containsId, createEntry, freeze, get, getCodec, getDefaultEntry, getEntry, getEntry, getEntry, getEntryCodec, getEntryInfo, getEntrySet, getIds, getIndexedEntries, getKey, getKey, getKeys, getOptionalValue, getOptionalValue, getRandom, getRandomEntry, getRawId, getValueOrThrow, iterateEntries, keys, startTagReload, stream, streamTags
Methods inherited from interface net.minecraft.registry.RegistryEntryLookup
getOptional, getOptional, getOrThrow, getOrThrow
Methods inherited from interface net.minecraft.registry.entry.RegistryEntryOwner
ownerEquals
Methods inherited from interface net.minecraft.registry.RegistryWrapper
getTags, streamEntries, streamKeys, streamTagKeys
Methods inherited from interface net.minecraft.registry.RegistryWrapper.Impl
getLifecycle, withFeatureFilter, withPredicateFilter
-
Method Details
-
getId
Returns the ID assigned tovalue
, ornull
if it is not registered.- Specified by:
getId
in interfaceRegistry<T>
- Returns:
- the ID assigned to
value
, ornull
if 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
Lkd;b(Ljava/lang/Object;)Lalz;
-
get
Returns the value that is assignedid
, ornull
if there is none.- Specified by:
get
in interfaceRegistry<T>
- Returns:
- the value that is assigned
id
, ornull
if 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
Lkd;a(Lalz;)Ljava/lang/Object;
-
get
- Specified by:
get
in interfaceIndexedIterable<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
Ljv;a(I)Ljava/lang/Object;
-
getDefaultId
Identifier getDefaultId()- Mappings:
Namespace Name Mixin selector named getDefaultId
Lnet/minecraft/registry/DefaultedRegistry;getDefaultId()Lnet/minecraft/util/Identifier;
intermediary method_10137
Lnet/minecraft/class_7922;method_10137()Lnet/minecraft/class_2960;
official b
Ljl;b()Lalz;
-