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<?>> registries) default Stream<ResourceKey<? extends Registry<?>>> lookup(ResourceKey<? extends Registry<? extends E>> registryKey) default <E> Registry<E> lookupOrThrow(ResourceKey<? extends Registry<? extends E>> name) Methods inherited from interface HolderGetter.Provider
get, getOrThrowMethods inherited from interface HolderLookup.Provider
allRegistriesLifecycle, createSerializationContext, listRegistriesMethods inherited from interface 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
-
freeze
-