Package net.minecraft.util
Class StringIdentifiable.BasicCodec<S extends StringIdentifiable>
java.lang.Object
net.minecraft.util.StringIdentifiable.BasicCodec<S>
- All Implemented Interfaces:
com.mojang.serialization.Codec<S>
,com.mojang.serialization.Decoder<S>
,com.mojang.serialization.Encoder<S>
- Direct Known Subclasses:
StringIdentifiable.EnumCodec
- Enclosing interface:
StringIdentifiable
public static class StringIdentifiable.BasicCodec<S extends StringIdentifiable>
extends Object
implements com.mojang.serialization.Codec<S>
- Mappings:
Namespace Name named net/minecraft/util/StringIdentifiable$BasicCodec
intermediary net/minecraft/class_3542$class_8808
official azk$b
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.serialization.Codec
com.mojang.serialization.Codec.RecursiveCodec<T>, com.mojang.serialization.Codec.ResultFunction<A>
Nested classes/interfaces inherited from interface com.mojang.serialization.Decoder
com.mojang.serialization.Decoder.Boxed<A>, com.mojang.serialization.Decoder.Simple<A>, com.mojang.serialization.Decoder.Terminal<A>
-
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
ConstructorDescriptionBasicCodec
(S[] values, Function<String, S> idToIdentifiable, ToIntFunction<S> identifiableToOrdinal) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.mojang.serialization.Codec
comapFlatMap, deprecated, dispatch, dispatch, dispatchMap, dispatchMap, dispatchStable, fieldOf, flatComapMap, flatXmap, lenientOptionalFieldOf, lenientOptionalFieldOf, lenientOptionalFieldOf, lenientOptionalFieldOf, listOf, listOf, mapResult, optionalFieldOf, optionalFieldOf, optionalFieldOf, optionalFieldOf, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, partialDispatch, promotePartial, sizeLimitedListOf, stable, validate, 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
-
codec
- Mappings:
Namespace Name Mixin selector named codec
Lnet/minecraft/util/StringIdentifiable$BasicCodec;codec:Lcom/mojang/serialization/Codec;
intermediary field_46245
Lnet/minecraft/class_3542$class_8808;field_46245:Lcom/mojang/serialization/Codec;
official a
Lazk$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
BasicCodec
public BasicCodec(S[] values, Function<String, S> idToIdentifiable, ToIntFunction<S> identifiableToOrdinal) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/StringIdentifiable$BasicCodec;<init>([Lnet/minecraft/util/StringIdentifiable;Ljava/util/function/Function;Ljava/util/function/ToIntFunction;)V
intermediary <init>
Lnet/minecraft/class_3542$class_8808;<init>([Lnet/minecraft/class_3542;Ljava/util/function/Function;Ljava/util/function/ToIntFunction;)V
official <init>
Lazk$b;<init>([Lazk;Ljava/util/function/Function;Ljava/util/function/ToIntFunction;)V
-
-
Method Details
-
decode
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<S,T>> decode(com.mojang.serialization.DynamicOps<T> ops, T input) - Specified by:
decode
in interfacecom.mojang.serialization.Decoder<S extends StringIdentifiable>
- Mappings:
Namespace Name Mixin selector named decode
Lnet/minecraft/util/StringIdentifiable$BasicCodec;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary decode
Lnet/minecraft/class_3542$class_8808;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
official decode
Lazk$b;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
encode
public <T> com.mojang.serialization.DataResult<T> encode(S s, com.mojang.serialization.DynamicOps<T> dynamicOps, T t) - Specified by:
encode
in interfacecom.mojang.serialization.Encoder<S extends StringIdentifiable>
- Mappings:
Namespace Name Mixin selector named encode
Lnet/minecraft/util/StringIdentifiable$BasicCodec;encode(Lnet/minecraft/util/StringIdentifiable;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary method_53956
Lnet/minecraft/class_3542$class_8808;method_53956(Lnet/minecraft/class_3542;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
official a
Lazk$b;a(Lazk;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-