2020-07-14 13:31:22 -04:00
|
|
|
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 <p>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.</p>
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The {@link DynamicRegistryManager.Impl}
|
|
|
|
COMMENT class serves as an immutable implementation of any particular collection
|
|
|
|
COMMENT or configuration of dynamic registries.</p>
|
|
|
|
FIELD field_25918 LOGGER Lorg/apache/logging/log4j/Logger;
|
|
|
|
FIELD field_25919 INFOS Ljava/util/Map;
|
2020-08-14 16:30:05 -04:00
|
|
|
FIELD field_26733 BUILTIN Lnet/minecraft/class_5455$class_5457;
|
2020-07-29 11:36:02 -04:00
|
|
|
METHOD method_30519 load (Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5382;)V
|
2020-07-14 13:31:22 -04:00
|
|
|
COMMENT Loads a dynamic registry manager from the resource manager's data files.
|
2021-02-02 12:57:50 -05:00
|
|
|
ARG 0 registryManager
|
2020-07-29 11:36:02 -04:00
|
|
|
METHOD method_30520 register (Lcom/google/common/collect/ImmutableMap$Builder;Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)V
|
2020-07-14 13:31:22 -04:00
|
|
|
ARG 0 infosBuilder
|
|
|
|
ARG 1 registryRef
|
2020-08-14 16:30:05 -04:00
|
|
|
ARG 2 entryCodec
|
2020-07-14 13:31:22 -04:00
|
|
|
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
|
2020-08-14 16:30:05 -04:00
|
|
|
METHOD method_30525 copyFromBuiltin (Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5321;)V
|
2020-07-14 13:31:22 -04:00
|
|
|
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
|
2020-12-31 09:22:27 -05:00
|
|
|
METHOD method_30527 getOptionalMutable (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
2020-07-14 13:31:22 -04:00
|
|
|
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.
|
2020-12-16 13:52:22 -05:00
|
|
|
METHOD method_30530 get (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;
|
2020-07-14 13:31:22 -04:00
|
|
|
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
|
2020-08-14 16:30:05 -04:00
|
|
|
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
|
2021-01-03 15:53:34 -05:00
|
|
|
METHOD method_31141 (Lnet/minecraft/class_5455$class_5457;Lnet/minecraft/class_5382$class_5506$class_5507;Lnet/minecraft/class_5455$class_5456;)V
|
|
|
|
ARG 0 registryManager
|
|
|
|
ARG 1 entryLoader
|
|
|
|
ARG 2 info
|
2020-12-31 09:22:27 -05:00
|
|
|
METHOD method_33309 getMutable (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2385;
|
|
|
|
ARG 1 key
|
|
|
|
METHOD method_33310 getOptional (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
|
|
|
ARG 1 key
|
2020-07-14 13:31:22 -04:00
|
|
|
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;
|
2020-08-14 16:30:05 -04:00
|
|
|
FIELD field_25921 entryCodec Lcom/mojang/serialization/Codec;
|
|
|
|
FIELD field_26687 networkEntryCodec Lcom/mojang/serialization/Codec;
|
2020-07-29 11:36:02 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)V
|
2020-07-14 13:31:22 -04:00
|
|
|
ARG 1 registry
|
2020-08-14 16:30:05 -04:00
|
|
|
ARG 2 entryCodec
|
|
|
|
ARG 3 networkEntryCodec
|
2020-07-14 13:31:22 -04:00
|
|
|
METHOD method_30535 getRegistry ()Lnet/minecraft/class_5321;
|
2020-08-14 16:30:05 -04:00
|
|
|
METHOD method_30536 getEntryCodec ()Lcom/mojang/serialization/Codec;
|
2020-07-14 13:31:22 -04:00
|
|
|
METHOD method_30537 isSynced ()Z
|
2020-08-14 16:30:05 -04:00
|
|
|
METHOD method_31061 getNetworkEntryCodec ()Lcom/mojang/serialization/Codec;
|
2020-07-14 13:31:22 -04:00
|
|
|
CLASS class_5457 Impl
|
|
|
|
COMMENT An immutable implementation of the dynamic registry manager, representing
|
|
|
|
COMMENT a specialized configuration of registries. It has a codec that allows
|
|
|
|
COMMENT conversion from and to data pack JSON or packet NBT.
|
|
|
|
FIELD field_25923 CODEC Lcom/mojang/serialization/Codec;
|
|
|
|
FIELD field_25924 registries Ljava/util/Map;
|
|
|
|
METHOD <init> (Ljava/util/Map;)V
|
|
|
|
ARG 1 registries
|
|
|
|
METHOD method_30538 fromRegistryCodecs (Lcom/mojang/serialization/codecs/UnboundedMapCodec;)Lcom/mojang/serialization/Codec;
|
|
|
|
METHOD method_30546 setupCodec ()Lcom/mojang/serialization/Codec;
|
|
|
|
METHOD method_30547 getDataResultForCodec (Lnet/minecraft/class_5321;)Lcom/mojang/serialization/DataResult;
|
|
|
|
ARG 0 registryRef
|
|
|
|
METHOD method_30548 createRegistry (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2370;
|
|
|
|
ARG 0 registryRef
|