Package net.minecraft.core
Interface RegistryAccess
- All Superinterfaces:
HolderGetter.Provider,HolderLookup.Provider,IHolderLookupProviderExtension
- All Known Subinterfaces:
RegistryAccess.Frozen
- All Known Implementing Classes:
RegistryAccess.ImmutableRegistryAccess
The root level registry, essentially a registry of registries. It is also an access point, hence the name, for other dynamic registries.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryAccess.Frozenstatic final org.slf4j.Logger -
Method Summary
Modifier and TypeMethodDescriptiondefault RegistryAccess.Frozenfreeze()static RegistryAccess.FrozenfromRegistryOfRegistries(Registry<? extends Registry<?>> pRegistryOfRegistries) default Stream<ResourceKey<? extends Registry<?>>> lookup(ResourceKey<? extends Registry<? extends E>> p_256275_) default <E> Registry<E> lookupOrThrow(ResourceKey<? extends Registry<? extends E>> p_368620_) Methods 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, holderOrThrow
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
EMPTY
-
-
Method Details
-
lookup
- Specified by:
lookupin interfaceHolderGetter.Provider- Specified by:
lookupin interfaceHolderLookup.Provider
-
lookupOrThrow
- Specified by:
lookupOrThrowin interfaceHolderGetter.Provider- Specified by:
lookupOrThrowin interfaceHolderLookup.Provider
-
registries
Stream<RegistryAccess.RegistryEntry<?>> registries() -
listRegistryKeys
- Specified by:
listRegistryKeysin interfaceHolderLookup.Provider
-
fromRegistryOfRegistries
static RegistryAccess.Frozen fromRegistryOfRegistries(Registry<? extends Registry<?>> pRegistryOfRegistries) -
freeze
-