CLASS net/minecraft/class_5455 net/minecraft/util/registry/DynamicRegistryManager COMMENT A manager of dynamic registries. It allows users to access non-hardcoded COMMENT registries reliably. COMMENT COMMENT
Each minecraft server has a dynamic registry manager for file-loaded COMMENT registries, while each client play network handler has a dynamic registry COMMENT manager for server-sent dynamic registries.
COMMENT COMMENTThe {@link DynamicRegistryManager.Impl} COMMENT class serves as an immutable implementation of any particular collection COMMENT or configuration of dynamic registries.
FIELD field_25918 LOGGER Lorg/apache/logging/log4j/Logger; FIELD field_25919 INFOS Ljava/util/Map; FIELD field_26733 BUILTIN Lnet/minecraft/class_5455$class_5457; METHOD method_30518 getDimensionTypes ()Lnet/minecraft/class_2378; METHOD method_30519 load (Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5382;)V COMMENT Loads a dynamic registry manager from the resource manager's data files. METHOD method_30520 register (Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)V ARG 0 infosBuilder ARG 1 registryRef ARG 2 entryCodec METHOD method_30524 addBuiltinEntries (Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_2378;)V COMMENT Add all entries of the {@code registry} to the corresponding registry COMMENT within this manager. ARG 0 manager ARG 1 registry METHOD method_30525 copyFromBuiltin (Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5321;)V COMMENT Add all entries of the registry referred by {@code registryRef} to the COMMENT corresponding registry within this manager. ARG 0 manager ARG 1 registryRef METHOD method_30526 load (Lnet/minecraft/class_5382;Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5455$class_5456;)V COMMENT Loads elements from the {@code ops} into the registry specified by {@code COMMENT info} within the {@code manager}. Note that the resource manager instance COMMENT is kept within the {@code ops}. ARG 0 ops ARG 1 manager ARG 2 info METHOD method_30527 getOptional (Lnet/minecraft/class_5321;)Ljava/util/Optional; COMMENT Retrieves a registry optionally from this manager. ARG 1 key METHOD method_30528 create ()Lnet/minecraft/class_5455$class_5457; COMMENT Creates a default dynamic registry manager. METHOD method_30530 get (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2385; COMMENT Retrieves a registry from this manager, or throws an exception when the COMMENT registry does not exist. COMMENT COMMENT @throws IllegalStateException if the registry does not exist ARG 1 key METHOD method_31060 register (Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)V ARG 0 infosBuilder ARG 1 registryRef ARG 2 entryCodec ARG 3 networkEntryCodec CLASS class_5456 Info COMMENT Represents the serialization behavior of the registries, including the COMMENT id of the registry, the codec for its elements, and whether the registry COMMENT should be sent to the client. FIELD field_25920 registry Lnet/minecraft/class_5321; FIELD field_25921 entryCodec Lcom/mojang/serialization/Codec; FIELD field_26687 networkEntryCodec Lcom/mojang/serialization/Codec; METHOD