Package net.minecraft.resources
Class RegistryOps.HolderLookupAdapter
java.lang.Object
net.minecraft.resources.RegistryOps.HolderLookupAdapter
- All Implemented Interfaces:
RegistryOps.RegistryInfoLookup
- Enclosing class:
RegistryOps<T>
static final class RegistryOps.HolderLookupAdapter
extends Object
implements RegistryOps.RegistryInfoLookup
-
Field Summary
Modifier and TypeFieldDescriptionprivate final HolderLookup.Provider
private final Map
<ResourceKey<? extends Registry<?>>, Optional<? extends RegistryOps.RegistryInfo<?>>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Optional
<RegistryOps.RegistryInfo<Object>> createLookup
(ResourceKey<? extends Registry<?>> p_335602_) boolean
int
hashCode()
<E> Optional
<RegistryOps.RegistryInfo<E>> lookup
(ResourceKey<? extends Registry<? extends E>> p_330389_)
-
Field Details
-
lookupProvider
-
lookups
private final Map<ResourceKey<? extends Registry<?>>,Optional<? extends RegistryOps.RegistryInfo<?>>> lookups
-
-
Constructor Details
-
HolderLookupAdapter
-
-
Method Details
-
lookup
public <E> Optional<RegistryOps.RegistryInfo<E>> lookup(ResourceKey<? extends Registry<? extends E>> p_330389_) - Specified by:
lookup
in interfaceRegistryOps.RegistryInfoLookup
-
createLookup
private Optional<RegistryOps.RegistryInfo<Object>> createLookup(ResourceKey<? extends Registry<?>> p_335602_) -
equals
-
hashCode
public int hashCode()
-