Package net.minecraft.registry
Interface DynamicRegistryManager
- All Superinterfaces:
RegistryEntryLookup.RegistryLookup
,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 ke
-
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 TypeMethodDescriptiongetOptional
(RegistryKey<? extends Registry<? extends E>> registryRef) default <E> Registry
<E> getOrThrow
(RegistryKey<? extends Registry<? extends E>> key) default Stream
<RegistryKey<? extends Registry<?>>> default DynamicRegistryManager.Immutable
Methods inherited from interface net.minecraft.registry.RegistryEntryLookup.RegistryLookup
getOptionalEntry
Methods inherited from interface net.minecraft.registry.RegistryWrapper.WrapperLookup
getLifecycle, getOps, stream
-
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
Lke;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
Lke;b:Lke$b;
-
-
Method Details
-
getOptional
- Specified by:
getOptional
in interfaceRegistryEntryLookup.RegistryLookup
- Specified by:
getOptional
in interfaceRegistryWrapper.WrapperLookup
- Mappings:
Namespace Name Mixin selector named getOptional
Lnet/minecraft/registry/RegistryEntryLookup$RegistryLookup;getOptional(Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_46759
Lnet/minecraft/class_7871$class_7872;method_46759(Lnet/minecraft/class_5321;)Ljava/util/Optional;
official a
Ljr$a;a(Laly;)Ljava/util/Optional;
-
getOrThrow
- Specified by:
getOrThrow
in interfaceRegistryEntryLookup.RegistryLookup
- Specified by:
getOrThrow
in interfaceRegistryWrapper.WrapperLookup
- Mappings:
Namespace Name Mixin selector named getOrThrow
Lnet/minecraft/registry/DynamicRegistryManager;getOrThrow(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 e
Lke;e(Laly;)Lkd;
-
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 a
Lke;a()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 b
Ljs$a;b()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
Lke;a(Lkd;)Lke$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 e
Lke;e()Lke$b;
-