Class RegistryAccess.ImmutableRegistryAccess
java.lang.Object
net.minecraft.core.RegistryAccess.ImmutableRegistryAccess
- All Implemented Interfaces:
HolderGetter.Provider, HolderLookup.Provider, RegistryAccess, IHolderLookupProviderExtension
- Enclosing interface:
RegistryAccess
-
Nested Class Summary
Nested classes/interfaces inherited from interface RegistryAccess
RegistryAccess.Frozen, RegistryAccess.ImmutableRegistryAccess, RegistryAccess.RegistryEntry<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> Fields inherited from interface RegistryAccess
EMPTY, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionImmutableRegistryAccess(List<? extends Registry<?>> registries) ImmutableRegistryAccess(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> registries) ImmutableRegistryAccess(Stream<RegistryAccess.RegistryEntry<?>> entries) -
Method Summary
Modifier and TypeMethodDescriptionlookup(ResourceKey<? extends Registry<? extends E>> registryKey) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HolderGetter.Provider
get, getOrThrowMethods inherited from interface HolderLookup.Provider
allRegistriesLifecycle, createSerializationContext, listRegistriesMethods inherited from interface IHolderLookupProviderExtension
holder, holderOrThrowMethods inherited from interface RegistryAccess
freeze, listRegistryKeys, lookupOrThrow
-
Field Details
-
registries
-
-
Constructor Details
-
ImmutableRegistryAccess
-
ImmutableRegistryAccess
public ImmutableRegistryAccess(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> registries) -
ImmutableRegistryAccess
-
-
Method Details
-
lookup
- Specified by:
lookupin interfaceHolderGetter.Provider- Specified by:
lookupin interfaceHolderLookup.Provider- Specified by:
lookupin interfaceRegistryAccess
-
registries
- Specified by:
registriesin interfaceRegistryAccess
-