Package net.minecraft.core
Interface HolderLookup.Provider
- All Known Subinterfaces:
CommandBuildContext
,RegistryAccess
,RegistryAccess.Frozen
- All Known Implementing Classes:
RegistryAccess.ImmutableRegistryAccess
,ReloadableServerRegistries.EmptyTagLookupWrapper
,ReloadableServerResources.ConfigurableRegistryLookup
- 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_) default <V> RegistryOps
<V> createSerializationContext
(com.mojang.serialization.DynamicOps<V> p_326817_) Stream
<ResourceKey<? extends Registry<?>>> <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
-
listRegistries
Stream<ResourceKey<? extends Registry<?>>> listRegistries() -
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_) -
createSerializationContext
default <V> RegistryOps<V> createSerializationContext(com.mojang.serialization.DynamicOps<V> p_326817_) -
asGetterLookup
-
create
-