public static final class DynamicRegistries.Impl extends DynamicRegistries
DynamicRegistries.CodecHolder<E>, DynamicRegistries.Impl
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<DynamicRegistries.Impl> |
NETWORK_CODEC |
private java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> |
registries |
Modifier | Constructor and Description |
---|---|
|
Impl() |
private |
Impl(java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> p_i242074_1_) |
Modifier and Type | Method and Description |
---|---|
private static <K extends RegistryKey<? extends Registry<?>>,V extends SimpleRegistry<?>> |
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_) |
builtin, dimensionTypes, load, registryOrThrow
public static final com.mojang.serialization.Codec<DynamicRegistries.Impl> NETWORK_CODEC
private final java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> registries
public Impl()
private Impl(java.util.Map<? extends RegistryKey<? extends Registry<?>>,? extends SimpleRegistry<?>> p_i242074_1_)
private static <E> com.mojang.serialization.Codec<DynamicRegistries.Impl> makeNetworkCodec()
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> com.mojang.serialization.DataResult<? extends com.mojang.serialization.Codec<E>> getNetworkCodec(RegistryKey<? extends Registry<E>> p_243636_0_)
private static <E> SimpleRegistry<?> createRegistry(RegistryKey<? extends Registry<?>> p_243638_0_)
public <E> java.util.Optional<MutableRegistry<E>> registry(RegistryKey<? extends Registry<E>> p_230521_1_)
registry
in class DynamicRegistries