2020-06-05 15:11:11 -04:00
|
|
|
CLASS net/minecraft/class_5381 net/minecraft/util/dynamic/RegistryElementCodec
|
|
|
|
COMMENT A codec for registry elements. Will prefer to encode/decode objects as
|
|
|
|
COMMENT identifiers if they exist in a registry and falls back to full encoding/
|
|
|
|
COMMENT decoding behavior if it cannot do so.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The codec's saves and loads {@code Supplier<E>} in order to avoid early
|
2021-04-11 08:08:07 -04:00
|
|
|
COMMENT loading from registry before a registry is fully loaded from a codec.
|
2020-06-05 15:11:11 -04:00
|
|
|
COMMENT
|
|
|
|
COMMENT @param <E> the element type
|
|
|
|
COMMENT @see RegistryOps
|
|
|
|
FIELD field_25507 registryRef Lnet/minecraft/class_5321;
|
2020-07-29 11:36:02 -04:00
|
|
|
FIELD field_25508 elementCodec Lcom/mojang/serialization/Codec;
|
2021-01-03 15:53:34 -05:00
|
|
|
FIELD field_26758 allowInlineDefinitions Z
|
2020-08-07 12:13:30 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Z)V
|
2020-06-05 15:11:11 -04:00
|
|
|
ARG 1 registryRef
|
2021-01-03 15:53:34 -05:00
|
|
|
ARG 2 elementCodec
|
|
|
|
ARG 3 allowInlineDefinitions
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD decode (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
|
|
|
|
ARG 1 ops
|
|
|
|
ARG 2 input
|
2020-06-05 15:11:11 -04:00
|
|
|
METHOD encode (Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
|
|
|
|
ARG 1 input
|
|
|
|
ARG 2 ops
|
|
|
|
ARG 3 prefix
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD method_29746 (Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/datafixers/util/Pair;
|
|
|
|
ARG 0 pair
|
2020-07-29 11:36:02 -04:00
|
|
|
METHOD method_29749 of (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_5381;
|
2020-06-05 15:11:11 -04:00
|
|
|
ARG 0 registryRef
|
2021-01-03 15:53:34 -05:00
|
|
|
ARG 1 elementCodec
|
|
|
|
METHOD method_31192 of (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Z)Lnet/minecraft/class_5381;
|
|
|
|
ARG 0 registryRef
|
|
|
|
ARG 1 elementCodec
|
|
|
|
ARG 2 allowInlineDefinitions
|
2022-02-16 10:57:25 -05:00
|
|
|
METHOD method_40391 (Lcom/mojang/datafixers/util/Pair;Lnet/minecraft/class_6880;)Lcom/mojang/datafixers/util/Pair;
|
|
|
|
ARG 1 entry
|
|
|
|
METHOD method_40392 (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
|
|
|
|
ARG 3 value
|
|
|
|
METHOD method_40393 (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;Lnet/minecraft/class_5321;)Lcom/mojang/serialization/DataResult;
|
|
|
|
ARG 2 key
|
|
|
|
METHOD method_40394 (Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/datafixers/util/Pair;
|
|
|
|
ARG 0 pair
|
2022-05-24 03:56:17 -04:00
|
|
|
METHOD method_44140 (Lcom/mojang/datafixers/util/Pair;Lnet/minecraft/class_6880;)Lcom/mojang/datafixers/util/Pair;
|
|
|
|
ARG 1 entry
|