Package net.minecraft.util.registry
Class DynamicRegistries
java.lang.Object
net.minecraft.util.registry.DynamicRegistries
- Direct Known Subclasses:
DynamicRegistries.Impl
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final class
static final class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final DynamicRegistries.Impl
private static final org.apache.logging.log4j.Logger
private static final Map<RegistryKey<? extends Registry<?>>,
DynamicRegistries.CodecHolder<?>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <E> void
addBuiltinElements
(DynamicRegistries.Impl p_243607_0_, WorldSettingsImport.IResourceAccess.RegistryAccess p_243607_1_, DynamicRegistries.CodecHolder<E> p_243607_2_) static DynamicRegistries.Impl
builtin()
private static <E> void
copy
(DynamicRegistries.Impl p_243606_0_, Registry<E> p_243606_1_) private static <R extends Registry<?>>
voidcopyBuiltin
(DynamicRegistries.Impl p_243609_0_, RegistryKey<R> p_243609_1_) static void
load
(DynamicRegistries.Impl p_243608_0_, WorldSettingsImport<?> p_243608_1_) private static <E> void
put
(com.google.common.collect.ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistries.CodecHolder<?>> p_243601_0_, RegistryKey<? extends Registry<E>> p_243601_1_, com.mojang.serialization.Codec<E> p_243601_2_) private static <E> void
put
(com.google.common.collect.ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistries.CodecHolder<?>> p_243602_0_, RegistryKey<? extends Registry<E>> p_243602_1_, com.mojang.serialization.Codec<E> p_243602_2_, com.mojang.serialization.Codec<E> p_243602_3_) private static <E> void
readRegistry
(WorldSettingsImport<?> p_243610_0_, DynamicRegistries.Impl p_243610_1_, DynamicRegistries.CodecHolder<E> p_243610_2_) abstract <E> Optional<MutableRegistry<E>>
registry
(RegistryKey<? extends Registry<E>> p_230521_1_) <E> MutableRegistry<E>
registryOrThrow
(RegistryKey<? extends Registry<E>> p_243612_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
REGISTRIES
private static final Map<RegistryKey<? extends Registry<?>>,DynamicRegistries.CodecHolder<?>> REGISTRIES -
BUILTIN
-
-
Constructor Details
-
DynamicRegistries
public DynamicRegistries()
-
-
Method Details
-
registry
public abstract <E> Optional<MutableRegistry<E>> registry(RegistryKey<? extends Registry<E>> p_230521_1_) -
registryOrThrow
-
dimensionTypes
-
put
private static <E> void put(com.google.common.collect.ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistries.CodecHolder<?>> p_243601_0_, RegistryKey<? extends Registry<E>> p_243601_1_, com.mojang.serialization.Codec<E> p_243601_2_) -
put
private static <E> void put(com.google.common.collect.ImmutableMap.Builder<RegistryKey<? extends Registry<?>>, DynamicRegistries.CodecHolder<?>> p_243602_0_, RegistryKey<? extends Registry<E>> p_243602_1_, com.mojang.serialization.Codec<E> p_243602_2_, com.mojang.serialization.Codec<E> p_243602_3_) -
builtin
-
addBuiltinElements
private static <E> void addBuiltinElements(DynamicRegistries.Impl p_243607_0_, WorldSettingsImport.IResourceAccess.RegistryAccess p_243607_1_, DynamicRegistries.CodecHolder<E> p_243607_2_) -
copyBuiltin
private static <R extends Registry<?>> void copyBuiltin(DynamicRegistries.Impl p_243609_0_, RegistryKey<R> p_243609_1_) -
copy
-
load
-
readRegistry
private static <E> void readRegistry(WorldSettingsImport<?> p_243610_0_, DynamicRegistries.Impl p_243610_1_, DynamicRegistries.CodecHolder<E> p_243610_2_)
-