Interface RegistryOps.RegistryInfoLookup
- All Known Implementing Classes:
RegistryOps.HolderLookupAdapter
- Enclosing class:
RegistryOps<T>
public static interface RegistryOps.RegistryInfoLookup
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Optional<HolderLookup<T>> fullLookup(ResourceKey<? extends Registry<? extends T>> registryKey) Neo: Returns the registry backing theHolderGetterreturned bylookup(ResourceKey), if available.<T> Optional<HolderGetter<T>> lookup(ResourceKey<? extends Registry<? extends T>> registryKey)
-
Method Details
-
lookup
-
fullLookup
default <T> Optional<HolderLookup<T>> fullLookup(ResourceKey<? extends Registry<? extends T>> registryKey) Neo: Returns the registry backing theHolderGetterreturned bylookup(ResourceKey), if available. The returned lookup must not be used during deserialization, it is only usable during runtime, such as within a custom holderset likeAnyHolderSetorNotHolderSet.
-