Package net.minecraft.core
Interface RegistryAccess
- All Superinterfaces:
HolderGetter.Provider
,HolderLookup.Provider
,IHolderLookupProviderExtension
- All Known Subinterfaces:
RegistryAccess.Frozen
- All Known Implementing Classes:
RegistryAccess.ImmutableRegistryAccess
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
static class
static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegistryAccess.Frozen
static final org.slf4j.Logger
-
Method Summary
Modifier and TypeMethodDescriptiondefault RegistryAccess.Frozen
freeze()
static RegistryAccess.Frozen
fromRegistryOfRegistries
(Registry<? extends Registry<?>> p_206166_) 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, getOrThrow
Methods inherited from interface net.minecraft.core.HolderLookup.Provider
allRegistriesLifecycle, createSerializationContext, listRegistries
Methods 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:
lookup
in interfaceHolderGetter.Provider
- Specified by:
lookup
in interfaceHolderLookup.Provider
-
lookupOrThrow
- Specified by:
lookupOrThrow
in interfaceHolderGetter.Provider
- Specified by:
lookupOrThrow
in interfaceHolderLookup.Provider
-
registries
Stream<RegistryAccess.RegistryEntry<?>> registries() -
listRegistryKeys
- Specified by:
listRegistryKeys
in interfaceHolderLookup.Provider
-
fromRegistryOfRegistries
-
freeze
-