Package net.minecraft.core
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 net.minecraft.core.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 net.minecraft.core.RegistryAccess
EMPTY, LOGGER -
Constructor Summary
ConstructorsConstructorDescriptionImmutableRegistryAccess(List<? extends Registry<?>> pRegistries) ImmutableRegistryAccess(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> pRegistries) ImmutableRegistryAccess(Stream<RegistryAccess.RegistryEntry<?>> pRegistries) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.core.HolderGetter.Provider
get, getOrThrowMethods inherited from interface net.minecraft.core.HolderLookup.Provider
allRegistriesLifecycle, createSerializationContext, listRegistriesMethods inherited from interface net.neoforged.neoforge.common.extensions.IHolderLookupProviderExtension
holder, holderOrThrowMethods inherited from interface net.minecraft.core.RegistryAccess
freeze, listRegistryKeys, lookupOrThrow
-
Field Details
-
registries
-
-
Constructor Details
-
ImmutableRegistryAccess
-
ImmutableRegistryAccess
public ImmutableRegistryAccess(Map<? extends ResourceKey<? extends Registry<?>>, ? extends Registry<?>> pRegistries) -
ImmutableRegistryAccess
-
-
Method Details
-
lookup
- Specified by:
lookupin interfaceHolderGetter.Provider- Specified by:
lookupin interfaceHolderLookup.Provider- Specified by:
lookupin interfaceRegistryAccess
-
registries
- Specified by:
registriesin interfaceRegistryAccess
-