com.mojang.serialization

public interface Decoder<A>

com.mojang.serialization.Decoder

Method summary

Modifier and TypeMethod
<T> DataResult<Pair<A, T>>
decode(DynamicOps<T> arg0, T arg1)
default <T> DataResult<A>
parse(DynamicOps<T> arg0, T arg1)
default <T> DataResult<Pair<A, T>>
decode(Dynamic<T> arg0)
default <T> DataResult<A>
parse(Dynamic<T> arg0)
default Decoder$Terminal<A>
terminal()
default Decoder$Boxed<A>
boxed()
default Decoder$Simple<A>
simple()
default MapDecoder<A>
fieldOf(String arg0)
default <B> Decoder<B>
flatMap(Function<? super A, ? extends DataResult<? extends B>> arg0)
default <B> Decoder<B>
map(Function<? super A, ? extends B> arg0)
default Decoder<A>
promotePartial(Consumer<String> arg0)
default Decoder<A>
withLifecycle(Lifecycle arg0)
static <A> Decoder<A>
ofTerminal(Decoder$Terminal<? extends A> arg0)
static <A> Decoder<A>
ofBoxed(Decoder$Boxed<? extends A> arg0)
static <A> Decoder<A>
ofSimple(Decoder$Simple<? extends A> arg0)
static <A> MapDecoder<A>
unit(A arg0)
static <A> MapDecoder<A>
unit(Supplier<A> arg0)
static <A> Decoder<A>
error(String arg0)