Package net.minecraft.registry
Interface RegistryEntryLookup<T>
- All Known Subinterfaces:
DefaultedRegistry<T>,MutableRegistry<T>,Registry<T>,RegistryWrapper<T>,RegistryWrapper.Impl<T>,RegistryWrapper.Impl.Delegating<T>
- All Known Implementing Classes:
ContextSwappableRegistryLookup.EntryLookupImpl,RegistryBuilder.EntryListCreatingLookup,RegistryBuilder.StandAloneEntryCreatingLookup,RegistryBuilder.UntaggedDelegatingLookup,RegistryBuilder.UntaggedLookup,SimpleDefaultedRegistry,SimpleRegistry
public interface RegistryEntryLookup<T>
- Mappings:
Namespace Name named net/minecraft/registry/RegistryEntryLookupintermediary net/minecraft/class_7871official jl
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetOptional(RegistryKey<T> key) getOptional(TagKey<T> tag) default RegistryEntry.Reference<T> getOrThrow(RegistryKey<T> key) default RegistryEntryList.Named<T> getOrThrow(TagKey<T> tag) default Optional<RegistryEntry<T>> getRandomEntry(TagKey<T> tag, Random random)
-
Method Details
-
getOptional
- Mappings:
Namespace Name Mixin selector named getOptionalLnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_46746Lnet/minecraft/class_7871;method_46746(Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLjl;a(Lami;)Ljava/util/Optional;
-
getOrThrow
- Mappings:
Namespace Name Mixin selector named getOrThrowLnet/minecraft/registry/RegistryEntryLookup;getOrThrow(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry$Reference;intermediary method_46747Lnet/minecraft/class_7871;method_46747(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880$class_6883;official bLjl;b(Lami;)Ljk$c;
-
getOptional
- Mappings:
Namespace Name Mixin selector named getOptionalLnet/minecraft/registry/RegistryEntryLookup;getOptional(Lnet/minecraft/registry/tag/TagKey;)Ljava/util/Optional;intermediary method_46733Lnet/minecraft/class_7871;method_46733(Lnet/minecraft/class_6862;)Ljava/util/Optional;official aLjl;a(Lbdj;)Ljava/util/Optional;
-
getOrThrow
- Mappings:
Namespace Name Mixin selector named getOrThrowLnet/minecraft/registry/RegistryEntryLookup;getOrThrow(Lnet/minecraft/registry/tag/TagKey;)Lnet/minecraft/registry/entry/RegistryEntryList$Named;intermediary method_46735Lnet/minecraft/class_7871;method_46735(Lnet/minecraft/class_6862;)Lnet/minecraft/class_6885$class_6888;official bLjl;b(Lbdj;)Ljo$c;
-
getRandomEntry
- Mappings:
Namespace Name Mixin selector named getRandomEntryLnet/minecraft/registry/RegistryEntryLookup;getRandomEntry(Lnet/minecraft/registry/tag/TagKey;Lnet/minecraft/util/math/random/Random;)Ljava/util/Optional;intermediary method_73042Lnet/minecraft/class_7871;method_73042(Lnet/minecraft/class_6862;Lnet/minecraft/class_5819;)Ljava/util/Optional;official aLjl;a(Lbdj;Lbfq;)Ljava/util/Optional;
-