Package net.minecraft.util
Class ExtraCodecs.RecursiveCodec<T>
java.lang.Object
net.minecraft.util.ExtraCodecs.RecursiveCodec<T>
- All Implemented Interfaces:
com.mojang.serialization.Codec<T>
,com.mojang.serialization.Decoder<T>
,com.mojang.serialization.Encoder<T>
- Enclosing class:
- ExtraCodecs
static class ExtraCodecs.RecursiveCodec<T>
extends Object
implements com.mojang.serialization.Codec<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.serialization.Codec
com.mojang.serialization.Codec.ResultFunction<A extends Object>
-
Field Summary
Fields inherited from interface com.mojang.serialization.Codec
BOOL, BYTE, BYTE_BUFFER, DOUBLE, EMPTY, FLOAT, INT, INT_STREAM, LONG, LONG_STREAM, PASSTHROUGH, SHORT, STRING
-
Constructor Summary
ConstructorDescriptionRecursiveCodec
(String p_311392_, Function<com.mojang.serialization.Codec<T>, com.mojang.serialization.Codec<T>> p_300700_) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mojang.serialization.Codec
comapFlatMap, deprecated, dispatch, dispatch, dispatchMap, dispatchMap, dispatchStable, fieldOf, flatComapMap, flatXmap, listOf, mapResult, optionalFieldOf, optionalFieldOf, optionalFieldOf, optionalFieldOf, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, partialDispatch, promotePartial, stable, withLifecycle, xmap
Methods inherited from interface com.mojang.serialization.Decoder
boxed, decode, flatMap, map, parse, parse, simple, terminal
Methods inherited from interface com.mojang.serialization.Encoder
comap, encodeStart, flatComap
-
Field Details
-
name
-
wrapped
-
-
Constructor Details
-
RecursiveCodec
-
-
Method Details
-
decode
public <S> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<T,S>> decode(com.mojang.serialization.DynamicOps<S> p_298423_, S p_298846_) - Specified by:
decode
in interfacecom.mojang.serialization.Decoder<T>
-
encode
public <S> com.mojang.serialization.DataResult<S> encode(T p_297845_, com.mojang.serialization.DynamicOps<S> p_300705_, S p_299581_) - Specified by:
encode
in interfacecom.mojang.serialization.Encoder<T>
-
toString
-