Package net.minecraft.core
Interface RegistryAccess
- All Superinterfaces:
HolderLookup.Provider
- All Known Subinterfaces:
RegistryAccess.Frozen
- All Known Implementing Classes:
RegistryAccess.ImmutableRegistryAccess
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
static class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RegistryAccess.Frozen
static final org.slf4j.Logger
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.mojang.serialization.Lifecycle
default RegistryAccess.Frozen
freeze()
static RegistryAccess.Frozen
fromRegistryOfRegistries
(Registry<? extends Registry<?>> p_206166_) default <T> Optional<HolderLookup.RegistryLookup<T>>
lookup
(ResourceKey<? extends Registry<? extends T>> p_256275_) registry
(ResourceKey<? extends Registry<? extends E>> p_123085_) default <E> Registry<E>
registryOrThrow
(ResourceKey<? extends Registry<? extends E>> p_175516_) Methods inherited from interface net.minecraft.core.HolderLookup.Provider
asGetterLookup, lookupOrThrow
-
Field Details
-
LOGGER
static final org.slf4j.Logger LOGGER -
EMPTY
-
-
Method Details
-
registry
-
lookup
default <T> Optional<HolderLookup.RegistryLookup<T>> lookup(ResourceKey<? extends Registry<? extends T>> p_256275_) - Specified by:
lookup
in interfaceHolderLookup.Provider
-
registryOrThrow
-
registries
Stream<RegistryAccess.RegistryEntry<?>> registries() -
fromRegistryOfRegistries
-
freeze
-
allRegistriesLifecycle
default com.mojang.serialization.Lifecycle allRegistriesLifecycle()
-