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
public static final class DynamicRegistries.Impl extends DynamicRegistries
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.util.registry.DynamicRegistries
DynamicRegistries.CodecHolder<E>, DynamicRegistries.Impl
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<DynamicRegistries.Impl>
NETWORK_CODEC
private java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>>
registries
-
Constructor Summary
Constructors Modifier Constructor Description Impl()
private
Impl(java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> p_i242074_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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_)
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>
makeNetworkCodec()
<E> java.util.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 Detail
-
NETWORK_CODEC
public static final com.mojang.serialization.Codec<DynamicRegistries.Impl> NETWORK_CODEC
-
registries
private final java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries
-
-
Constructor Detail
-
Impl
public Impl()
-
Impl
private Impl(java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> p_i242074_1_)
-
-
Method Detail
-
makeNetworkCodec
private static <E> com.mojang.serialization.Codec<DynamicRegistries.Impl> 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
private static <E> SimpleRegistry<?> createRegistry(RegistryKey<? extends Registry<?>> p_243638_0_)
-
registry
public <E> java.util.Optional<MutableRegistry<E>> registry(RegistryKey<? extends Registry<E>> p_230521_1_)
- Specified by:
registry
in classDynamicRegistries
-
-