net.minecraft.util

public final class ExtraCodecs$EitherCodec<F, S>

implements com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<F, S>>

atw$b
net.minecraft.util.ExtraCodecs$EitherCodec
net.minecraft.class_5699$class_6495
net.minecraft.util.dynamic.Codecs$Either
net.minecraft.src.C_140989_$C_182777_
net.minecraft.util.ExtraCodecs$b

Field summary

Modifier and TypeField
private final com.mojang.serialization.Codec<F>
a
first
field_34388
first
f_184505_
private final com.mojang.serialization.Codec<S>
b
second
field_34389
second
f_184506_

Constructor summary

ModifierConstructor
public (com.mojang.serialization.Codec<F> first, com.mojang.serialization.Codec<S> second)

Method summary

Modifier and TypeMethod
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<com.mojang.datafixers.util.Either<F, S>, T>>
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> ops, T input)
decode(com.mojang.serialization.DynamicOps<T> p_184531_, T arg1)
public <T> com.mojang.serialization.DataResult<T>
a(com.mojang.datafixers.util.Either<F, S> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(com.mojang.datafixers.util.Either<F, S> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
method_37945(com.mojang.datafixers.util.Either<F, S> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(com.mojang.datafixers.util.Either<F, S> arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(com.mojang.datafixers.util.Either<F, S> p_184512_, com.mojang.serialization.DynamicOps<T> p_184513_, T arg2)