Package net.minecraft.registry
Interface DynamicRegistryManager
- All Superinterfaces:
RegistryWrapper.WrapperLookup
- All Known Subinterfaces:
DynamicRegistryManager.Immutable
- All Known Implementing Classes:
DynamicRegistryManager.ImmutableImpl
A manager of dynamic registries. It allows users to access non-hardcoded
registries reliably.
The DynamicRegistryManager.ImmutableImpl
class serves as an immutable implementation of any particular collection
or configuration of dynamic registries.
- Mappings:
Namespace Name named net/minecraft/registry/DynamicRegistryManager
intermediary net/minecraft/class_5455
official ka
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final record
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DynamicRegistryManager.Immutable
static final Logger
-
Method Summary
Modifier and TypeMethodDescriptiondefault <E> Registry
<E> get
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry from this manager, or throws an exception when the registry does not exist.getOptional
(RegistryKey<? extends Registry<? extends E>> key) default <T> Optional
<RegistryWrapper.Impl<T>> getOptionalWrapper
(RegistryKey<? extends Registry<? extends T>> registryRef) default com.mojang.serialization.Lifecycle
default Stream
<RegistryKey<? extends Registry<?>>> default DynamicRegistryManager.Immutable
Methods inherited from interface net.minecraft.registry.RegistryWrapper.WrapperLookup
createRegistryLookup, getOps, getWrapperOrThrow
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/registry/DynamicRegistryManager;LOGGER:Lorg/slf4j/Logger;
intermediary field_25918
Lnet/minecraft/class_5455;field_25918:Lorg/slf4j/Logger;
official a
Lka;a:Lorg/slf4j/Logger;
-
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTY
Lnet/minecraft/registry/DynamicRegistryManager;EMPTY:Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
intermediary field_40585
Lnet/minecraft/class_5455;field_40585:Lnet/minecraft/class_5455$class_6890;
official b
Lka;b:Lka$b;
-
-
Method Details
-
getOptional
- Mappings:
Namespace Name Mixin selector named getOptional
Lnet/minecraft/registry/DynamicRegistryManager;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_33310
Lnet/minecraft/class_5455;method_33310(Lnet/minecraft/class_5321;)Ljava/util/Optional;
official c
Lka;c(Lakp;)Ljava/util/Optional;
-
getOptionalWrapper
default <T> Optional<RegistryWrapper.Impl<T>> getOptionalWrapper(RegistryKey<? extends Registry<? extends T>> registryRef) - Specified by:
getOptionalWrapper
in interfaceRegistryWrapper.WrapperLookup
- Mappings:
Namespace Name Mixin selector named getOptionalWrapper
Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;getOptionalWrapper(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_46759
Lnet/minecraft/class_7225$class_7874;method_46759(Lnet/minecraft/class_5321;)Ljava/util/Optional;
official a
Ljo$a;a(Lakp;)Ljava/util/Optional;
-
get
Retrieves a registry from this manager, or throws an exception when the registry does not exist.- Throws:
IllegalStateException
- if the registry does not exist- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/registry/DynamicRegistryManager;get(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/Registry;
intermediary method_30530
Lnet/minecraft/class_5455;method_30530(Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;
official d
Lka;d(Lakp;)Ljz;
-
streamAllRegistries
Stream<DynamicRegistryManager.Entry<?>> streamAllRegistries()- Mappings:
Namespace Name Mixin selector named streamAllRegistries
Lnet/minecraft/registry/DynamicRegistryManager;streamAllRegistries()Ljava/util/stream/Stream;
intermediary method_40311
Lnet/minecraft/class_5455;method_40311()Ljava/util/stream/Stream;
official c
Lka;c()Ljava/util/stream/Stream;
-
streamAllRegistryKeys
- Specified by:
streamAllRegistryKeys
in interfaceRegistryWrapper.WrapperLookup
- Mappings:
Namespace Name Mixin selector named streamAllRegistryKeys
Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;streamAllRegistryKeys()Ljava/util/stream/Stream;
intermediary method_55282
Lnet/minecraft/class_7225$class_7874;method_55282()Ljava/util/stream/Stream;
official a
Ljo$a;a()Ljava/util/stream/Stream;
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/registry/DynamicRegistryManager;of(Lnet/minecraft/registry/Registry;)Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
intermediary method_40302
Lnet/minecraft/class_5455;method_40302(Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6890;
official a
Lka;a(Ljz;)Lka$b;
-
toImmutable
- Mappings:
Namespace Name Mixin selector named toImmutable
Lnet/minecraft/registry/DynamicRegistryManager;toImmutable()Lnet/minecraft/registry/DynamicRegistryManager$Immutable;
intermediary method_40316
Lnet/minecraft/class_5455;method_40316()Lnet/minecraft/class_5455$class_6890;
official d
Lka;d()Lka$b;
-
getRegistryLifecycle
default com.mojang.serialization.Lifecycle getRegistryLifecycle()- Mappings:
Namespace Name Mixin selector named getRegistryLifecycle
Lnet/minecraft/registry/DynamicRegistryManager;getRegistryLifecycle()Lcom/mojang/serialization/Lifecycle;
intermediary method_41201
Lnet/minecraft/class_5455;method_41201()Lcom/mojang/serialization/Lifecycle;
official e
Lka;e()Lcom/mojang/serialization/Lifecycle;
-