Class HTEitherCodec
-
-
Constructor Summary
Constructors Constructor Description HTEitherCodec(Codec<A> left, Codec<B> right, Boolean strict)
-
Method Summary
Modifier and Type Method Description final Codec<A>getLeft()final Codec<B>getRight()final BooleangetStrict()<T extends Any> DataResult<T>encode(Either<A, B> input, DynamicOps<T> ops, T prefix)<T extends Any> DataResult<Pair<Either<A, B>, T>>decode(DynamicOps<T> ops, T input)-
Methods inherited from class com.mojang.serialization.Decoder
boxed, decode, flatMap, map, parse, parse, promotePartial, simple, terminal -
Methods inherited from class com.mojang.serialization.Encoder
comap, encodeStart, fieldOf, flatComap, withLifecycle -
Methods inherited from class com.mojang.serialization.Codec
comapFlatMap, deprecated, dispatch, dispatch, dispatchMap, dispatchMap, dispatchStable, flatComapMap, flatXmap, lenientOptionalFieldOf, lenientOptionalFieldOf, lenientOptionalFieldOf, lenientOptionalFieldOf, listOf, listOf, mapResult, optionalFieldOf, optionalFieldOf, optionalFieldOf, optionalFieldOf, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, partialDispatch, sizeLimitedListOf, stable, validate, xmap -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-