mirror of https://github.com/FabricMC/yarn.git
65 lines
3.5 KiB
Plaintext
65 lines
3.5 KiB
Plaintext
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.
|
|
COMMENT
|
|
COMMENT <p>The {@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/slf4j/Logger;
|
|
FIELD field_25919 INFOS Ljava/util/Map;
|
|
FIELD field_26733 BUILTIN Ljava/util/function/Supplier;
|
|
METHOD method_30519 load (Lnet/minecraft/class_5455$class_6893;Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_6900;)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_30526 load (Lcom/mojang/serialization/DynamicOps;Lnet/minecraft/class_6900$class_6901;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}.
|
|
METHOD method_30527 getOptionalMutable (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
|
COMMENT Retrieves a registry optionally from this manager.
|
|
ARG 1 key
|
|
METHOD method_30530 get (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;
|
|
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
|
|
METHOD method_31141 (Lnet/minecraft/class_5455$class_6893;Lnet/minecraft/class_5506$class_5507;Lnet/minecraft/class_5455$class_5456;)V
|
|
ARG 0 registryManager
|
|
ARG 1 entryLoader
|
|
ARG 2 info
|
|
METHOD method_33309 getMutable (Lnet/minecraft/class_5321;)Lnet/minecraft/class_2378;
|
|
ARG 1 key
|
|
METHOD method_33310 getOptional (Lnet/minecraft/class_5321;)Ljava/util/Optional;
|
|
ARG 1 key
|
|
METHOD method_39674 getInfos ()Ljava/lang/Iterable;
|
|
METHOD method_40302 (Lnet/minecraft/class_2378;)Lnet/minecraft/class_5455$class_6890;
|
|
ARG 0 registries
|
|
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 comp_293 registry Lnet/minecraft/class_5321;
|
|
FIELD comp_294 entryCodec Lcom/mojang/serialization/Codec;
|
|
FIELD comp_295 networkEntryCodec Lcom/mojang/serialization/Codec;
|
|
METHOD <init> (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)V
|
|
ARG 1 registry
|
|
ARG 2 entryCodec
|
|
ARG 3 networkEntryCodec
|
|
METHOD comp_293 registry ()Lnet/minecraft/class_5321;
|
|
METHOD comp_294 entryCodec ()Lcom/mojang/serialization/Codec;
|
|
METHOD comp_295 networkEntryCodec ()Lcom/mojang/serialization/Codec;
|
|
METHOD method_30537 isSynced ()Z
|