Package net.minecraft.util.registry
Class DynamicRegistries.Impl
java.lang.Object
net.minecraft.util.registry.DynamicRegistries
net.minecraft.util.registry.DynamicRegistries.Impl
- Enclosing class:
- DynamicRegistries
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.registry.DynamicRegistries
DynamicRegistries.CodecHolder<E>, DynamicRegistries.Impl
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DynamicRegistries.Impl>
private final Map<? extends RegistryKey<? extends Registry<?>>,
? extends SimpleRegistry<?>> -
Constructor Summary
ModifierConstructorDescriptionImpl()
private
Impl
(Map<? extends RegistryKey<? extends Registry<?>>, ? extends SimpleRegistry<?>> p_i242074_1_) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <K extends RegistryKey<? extends Registry<?>>,
V extends SimpleRegistry<?>>
com.mojang.serialization.Codec<DynamicRegistries.Impl>captureMap
(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> p_243628_0_) private static <E> SimpleRegistry<?>
createRegistry
(RegistryKey<? extends Registry<?>> p_243638_0_) private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>>
getNetworkCodec
(RegistryKey<? extends Registry<E>> p_243636_0_) private static <E> com.mojang.serialization.Codec<DynamicRegistries.Impl>
<E> Optional<MutableRegistry<E>>
registry
(RegistryKey<? extends Registry<E>> p_230521_1_) Methods inherited from class net.minecraft.util.registry.DynamicRegistries
builtin, dimensionTypes, load, registryOrThrow
-
Field Details
-
NETWORK_CODEC
-
registries
private final Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries
-
-
Constructor Details
-
Impl
public Impl() -
Impl
private Impl(Map<? extends RegistryKey<? extends Registry<?>>, ? extends SimpleRegistry<?>> p_i242074_1_)
-
-
Method Details
-
makeNetworkCodec
-
captureMap
private static <K extends RegistryKey<? extends Registry<?>>,V extends SimpleRegistry<?>> com.mojang.serialization.Codec<DynamicRegistries.Impl> captureMap(com.mojang.serialization.codecs.UnboundedMapCodec<K, V> p_243628_0_) -
getNetworkCodec
private static <E> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getNetworkCodec(RegistryKey<? extends Registry<E>> p_243636_0_) -
createRegistry
-
registry
- Specified by:
registry
in classDynamicRegistries
-