Package net.minecraft.core
Interface HolderLookup.Provider
- All Known Subinterfaces:
RegistryAccess
,RegistryAccess.Frozen
- All Known Implementing Classes:
RegistryAccess.ImmutableRegistryAccess
- Enclosing interface:
- HolderLookup<T>
public static interface HolderLookup.Provider
-
Method Summary
Modifier and TypeMethodDescriptiondefault HolderGetter.Provider
static HolderLookup.Provider
create
(Stream<HolderLookup.RegistryLookup<?>> p_256054_) <T> Optional<HolderLookup.RegistryLookup<T>>
lookup
(ResourceKey<? extends Registry<? extends T>> p_256285_) default <T> HolderLookup.RegistryLookup<T>
lookupOrThrow
(ResourceKey<? extends Registry<? extends T>> p_255957_)
-
Method Details
-
lookup
<T> Optional<HolderLookup.RegistryLookup<T>> lookup(ResourceKey<? extends Registry<? extends T>> p_256285_) -
lookupOrThrow
default <T> HolderLookup.RegistryLookup<T> lookupOrThrow(ResourceKey<? extends Registry<? extends T>> p_255957_) -
asGetterLookup
-
create
-