Class RegistryOps.HolderLookupAdapter
java.lang.Object
net.minecraft.resources.RegistryOps.HolderLookupAdapter
- All Implemented Interfaces:
RegistryOps.RegistryInfoLookup
- Enclosing class:
RegistryOps<T>
public static final class RegistryOps.HolderLookupAdapter
extends Object
implements RegistryOps.RegistryInfoLookup
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal HolderLookup.Providerprivate final Map<ResourceKey<? extends Registry<?>>, Optional<? extends HolderGetter<?>>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<E> Optional<HolderLookup<E>> fullLookup(ResourceKey<? extends Registry<? extends E>> registryKey) Neo: Returns the registry backing theHolderGetterreturned byRegistryOps.RegistryInfoLookup.lookup(ResourceKey), if available.inthashCode()<E> Optional<HolderGetter<E>> lookup(ResourceKey<? extends Registry<? extends E>> registryKey)
-
Field Details
-
lookupProvider
-
lookups
-
-
Constructor Details
-
HolderLookupAdapter
-
-
Method Details
-
lookup
public <E> Optional<HolderGetter<E>> lookup(ResourceKey<? extends Registry<? extends E>> registryKey) - Specified by:
lookupin interfaceRegistryOps.RegistryInfoLookup
-
fullLookup
public <E> Optional<HolderLookup<E>> fullLookup(ResourceKey<? extends Registry<? extends E>> registryKey) Description copied from interface:RegistryOps.RegistryInfoLookupNeo: Returns the registry backing theHolderGetterreturned byRegistryOps.RegistryInfoLookup.lookup(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.- Specified by:
fullLookupin interfaceRegistryOps.RegistryInfoLookup
-
equals
-
hashCode
-