yarn/mappings/net/minecraft/util/dynamic/Codecs.mapping

47 lines
2.2 KiB
Plaintext

CLASS net/minecraft/class_5699 net/minecraft/util/dynamic/Codecs
COMMENT A few extensions for {@link Codec} or {@link DynamicOps}.
COMMENT
COMMENT <p>Expect its removal once Mojang updates DataFixerUpper.
METHOD method_33817 xor (Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
COMMENT Returns an exclusive-or codec for {@link Either} instances.
COMMENT
COMMENT <p>This returned codec fails if both the {@code first} and {@code second} codecs can
COMMENT decode the input, while DFU's {@link com.mojang.serialization.codecs.EitherCodec}
COMMENT will always take the first decoded result when it is available.
COMMENT
COMMENT <p>Otherwise, this behaves the same as the either codec.
COMMENT
COMMENT @param <F> the first type
COMMENT @param <S> the second type
COMMENT @return the xor codec for the two codecs
COMMENT @see Codec#either(Codec, Codec)
COMMENT @see com.mojang.serialization.codecs.EitherCodec
ARG 0 first
COMMENT the first codec
ARG 1 second
COMMENT the second codec
CLASS class_5839 Xor
COMMENT @see com.mojang.serialization.codecs.EitherCodec
FIELD field_28868 first Lcom/mojang/serialization/Codec;
FIELD field_28869 second Lcom/mojang/serialization/Codec;
METHOD <init> (Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)V
ARG 1 first
ARG 2 second
METHOD decode (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
ARG 1 ops
ARG 2 input
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
METHOD equals (Ljava/lang/Object;)Z
ARG 1 o
METHOD method_33821 (Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/datafixers/util/Pair;
ARG 0 pair
METHOD method_33822 (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
ARG 3 right
METHOD method_33823 (Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/datafixers/util/Pair;
ARG 0 pair
METHOD method_33824 (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
ARG 3 left