Package net.minecraft.util
Class StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
java.lang.Object
net.minecraft.util.StringIdentifiable.Codec<E>
- All Implemented Interfaces:
com.mojang.serialization.Codec<E>
,com.mojang.serialization.Decoder<E>
,com.mojang.serialization.Encoder<E>
- Enclosing interface:
StringIdentifiable
@Deprecated
public static class StringIdentifiable.Codec<E extends Enum<E> & StringIdentifiable>
extends Object
implements com.mojang.serialization.Codec<E>
Deprecated.
- Mappings:
Namespace Name official amw$a
intermediary net/minecraft/class_3542$class_7292
named net/minecraft/util/StringIdentifiable$Codec
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.serialization.Codec
com.mojang.serialization.Codec.ResultFunction<A extends Object>
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.mojang.serialization.Codec<E>
Deprecated.Deprecated.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
-
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, 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
-
base
Deprecated.- Mappings:
Namespace Name Mixin selector official a
Lamw$a;a:Lcom/mojang/serialization/Codec;
intermediary field_38378
Lnet/minecraft/class_3542$class_7292;field_38378:Lcom/mojang/serialization/Codec;
named base
Lnet/minecraft/util/StringIdentifiable$Codec;base:Lcom/mojang/serialization/Codec;
-
idToIdentifiable
Deprecated.- Mappings:
Namespace Name Mixin selector official b
Lamw$a;b:Ljava/util/function/Function;
intermediary field_38379
Lnet/minecraft/class_3542$class_7292;field_38379:Ljava/util/function/Function;
named idToIdentifiable
Lnet/minecraft/util/StringIdentifiable$Codec;idToIdentifiable:Ljava/util/function/Function;
-
-
Constructor Details
-
Codec
Deprecated.- Mappings:
Namespace Name Mixin selector official <init>
Lamw$a;<init>([Ljava/lang/Enum;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_3542$class_7292;<init>([Ljava/lang/Enum;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/util/StringIdentifiable$Codec;<init>([Ljava/lang/Enum;Ljava/util/function/Function;)V
-
-
Method Details
-
decode
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E,T>> decode(com.mojang.serialization.DynamicOps<T> ops, T input) Deprecated.- Specified by:
decode
in interfacecom.mojang.serialization.Decoder<E extends Enum<E> & StringIdentifiable>
- Mappings:
Namespace Name Mixin selector official decode
Lamw$a;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary decode
Lnet/minecraft/class_3542$class_7292;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named decode
Lnet/minecraft/util/StringIdentifiable$Codec;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
encode
public <T> com.mojang.serialization.DataResult<T> encode(E e, com.mojang.serialization.DynamicOps<T> dynamicOps, T t) Deprecated.- Specified by:
encode
in interfacecom.mojang.serialization.Encoder<E extends Enum<E> & StringIdentifiable>
- Mappings:
Namespace Name Mixin selector official a
Lamw$a;a(Ljava/lang/Enum;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary method_42631
Lnet/minecraft/class_3542$class_7292;method_42631(Ljava/lang/Enum;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
named encode
Lnet/minecraft/util/StringIdentifiable$Codec;encode(Ljava/lang/Enum;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
byId
Deprecated.- Mappings:
Namespace Name Mixin selector official a
Lamw$a;a(Ljava/lang/String;)Ljava/lang/Enum;
intermediary method_42633
Lnet/minecraft/class_3542$class_7292;method_42633(Ljava/lang/String;)Ljava/lang/Enum;
named byId
Lnet/minecraft/util/StringIdentifiable$Codec;byId(Ljava/lang/String;)Ljava/lang/Enum;
-