Package net.minecraft.util.registry
Class DynamicRegistryManager.Impl
java.lang.Object
net.minecraft.util.registry.DynamicRegistryManager
net.minecraft.util.registry.DynamicRegistryManager.Impl
- Enclosing class:
- DynamicRegistryManager
An immutable implementation of the dynamic registry manager, representing
a specialized configuration of registries. It has a codec that allows
conversion from and to data pack JSON or packet NBT.
- Mappings:
Namespace Name official gy$b
intermediary net/minecraft/class_5455$class_5457
named net/minecraft/util/registry/DynamicRegistryManager$Impl
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.registry.DynamicRegistryManager
DynamicRegistryManager.Impl, DynamicRegistryManager.Info<E>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DynamicRegistryManager.Impl>
private final Map<? extends RegistryKey<? extends Registry<?>>,
? extends SimpleRegistry<?>> Fields inherited from class net.minecraft.util.registry.DynamicRegistryManager
INFOS, LOGGER
-
Constructor Summary
ModifierConstructorDescriptionImpl()
private
Impl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends SimpleRegistry<?>> registries) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <E> SimpleRegistry<?>
createRegistry
(RegistryKey<? extends Registry<?>> registryRef) private static <K extends RegistryKey<? extends Registry<?>>,
V extends SimpleRegistry<?>>
com.mojang.serialization.Codec<DynamicRegistryManager.Impl>fromRegistryCodecs
(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> unboundedMapCodec) private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
getDataResultForCodec
(RegistryKey<? extends Registry<E>> registryRef) <E> Optional<MutableRegistry<E>>
getOptionalMutable
(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.static DynamicRegistryManager
method_39199
(com.mojang.serialization.Dynamic<?> dynamic) private static <E> SimpleRegistry<?>
method_39201
(RegistryKey<? extends Registry<?>> registryKey, com.mojang.serialization.Dynamic<?> dynamic) private static <E> com.mojang.serialization.Codec<DynamicRegistryManager.Impl>
Methods inherited from class net.minecraft.util.registry.DynamicRegistryManager
create, get, getInfos, getMutable, getOptional, load
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lgy$b;a:Lcom/mojang/serialization/Codec;
intermediary field_25923
Lnet/minecraft/class_5455$class_5457;field_25923:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;CODEC:Lcom/mojang/serialization/Codec;
-
registries
private final Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries- Mappings:
Namespace Name Mixin selector official b
Lgy$b;b:Ljava/util/Map;
intermediary field_25924
Lnet/minecraft/class_5455$class_5457;field_25924:Ljava/util/Map;
named registries
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;registries:Ljava/util/Map;
-
-
Constructor Details
-
Impl
public Impl() -
Impl
private Impl(Map<? extends RegistryKey<? extends Registry<?>>, ? extends SimpleRegistry<?>> registries) - Mappings:
Namespace Name Mixin selector official <init>
Lgy$b;<init>(Ljava/util/Map;)V
intermediary <init>
Lnet/minecraft/class_5455$class_5457;<init>(Ljava/util/Map;)V
named <init>
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;<init>(Ljava/util/Map;)V
-
-
Method Details
-
setupCodec
- Mappings:
Namespace Name Mixin selector official c
Lgy$b;c()Lcom/mojang/serialization/Codec;
intermediary method_30546
Lnet/minecraft/class_5455$class_5457;method_30546()Lcom/mojang/serialization/Codec;
named setupCodec
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;setupCodec()Lcom/mojang/serialization/Codec;
-
fromRegistryCodecs
private static <K extends RegistryKey<? extends Registry<?>>,V extends SimpleRegistry<?>> com.mojang.serialization.Codec<DynamicRegistryManager.Impl> fromRegistryCodecs(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> unboundedMapCodec) - Mappings:
Namespace Name Mixin selector official a
Lgy$b;a(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
intermediary method_30538
Lnet/minecraft/class_5455$class_5457;method_30538(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
named fromRegistryCodecs
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;fromRegistryCodecs(Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
-
getDataResultForCodec
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getDataResultForCodec(RegistryKey<? extends Registry<E>> registryRef) - Mappings:
Namespace Name Mixin selector official e
Lgy$b;e(Lyg;)Lcom/mojang/serialization/DataResult;
intermediary method_30547
Lnet/minecraft/class_5455$class_5457;method_30547(Lnet/minecraft/class_5321;)Lcom/mojang/serialization/DataResult;
named getDataResultForCodec
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;getDataResultForCodec(Lnet/minecraft/util/registry/RegistryKey;)Lcom/mojang/serialization/DataResult;
-
method_39199
- Mappings:
Namespace Name Mixin selector official a
Lgy$b;a(Lcom/mojang/serialization/Dynamic;)Lgy;
intermediary method_39199
Lnet/minecraft/class_5455$class_5457;method_39199(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_5455;
named method_39199
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;method_39199(Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/util/registry/DynamicRegistryManager;
-
method_39201
private static <E> SimpleRegistry<?> method_39201(RegistryKey<? extends Registry<?>> registryKey, com.mojang.serialization.Dynamic<?> dynamic) - Mappings:
Namespace Name Mixin selector official a
Lgy$b;a(Lyg;Lcom/mojang/serialization/Dynamic;)Lgs;
intermediary method_39201
Lnet/minecraft/class_5455$class_5457;method_39201(Lnet/minecraft/class_5321;Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/class_2370;
named method_39201
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;method_39201(Lnet/minecraft/util/registry/RegistryKey;Lcom/mojang/serialization/Dynamic;)Lnet/minecraft/util/registry/SimpleRegistry;
-
createRegistry
- Mappings:
Namespace Name Mixin selector official f
Lgy$b;f(Lyg;)Lgs;
intermediary method_30548
Lnet/minecraft/class_5455$class_5457;method_30548(Lnet/minecraft/class_5321;)Lnet/minecraft/class_2370;
named createRegistry
Lnet/minecraft/util/registry/DynamicRegistryManager$Impl;createRegistry(Lnet/minecraft/util/registry/RegistryKey;)Lnet/minecraft/util/registry/SimpleRegistry;
-
getOptionalMutable
public <E> Optional<MutableRegistry<E>> getOptionalMutable(RegistryKey<? extends Registry<? extends E>> key) Retrieves a registry optionally from this manager.- Specified by:
getOptionalMutable
in classDynamicRegistryManager
- Mappings:
Namespace Name Mixin selector official a
Lgy;a(Lyg;)Ljava/util/Optional;
intermediary method_30527
Lnet/minecraft/class_5455;method_30527(Lnet/minecraft/class_5321;)Ljava/util/Optional;
named getOptionalMutable
Lnet/minecraft/util/registry/DynamicRegistryManager;getOptionalMutable(Lnet/minecraft/util/registry/RegistryKey;)Ljava/util/Optional;
-