net.minecraft.util

public class StringRepresentable$EnumCodec<E extends Enum<E> extends StringRepresentable>

implements com.mojang.serialization.Codec<E>

asp$a
net.minecraft.util.StringRepresentable$EnumCodec
net.minecraft.class_3542$class_7292
net.minecraft.util.StringIdentifiable$EnumCodec
net.minecraft.src.C_197_$C_212981_
net.minecraft.util.INamable$a

Field summary

Modifier and TypeField
private final com.mojang.serialization.Codec<E>
a
codec
field_38378
base
f_216444_
private final Function<String, E>
b
resolver
field_38379
idToIdentifiable
f_216445_

Constructor summary

ModifierConstructor
public (E[] values, Function<String, E> idToIdentifiable)

Method summary

Modifier and TypeMethod
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<E, T>>
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> arg0, T arg1)
decode(com.mojang.serialization.DynamicOps<T> ops, T input)
decode(com.mojang.serialization.DynamicOps<T> p_216464_, T arg1)
public <T> com.mojang.serialization.DataResult<T>
a(E arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(E arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
method_42631(E arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(E arg0, com.mojang.serialization.DynamicOps<T> arg1, T arg2)
encode(E p_216451_, com.mojang.serialization.DynamicOps<T> p_216452_, T arg2)
public E
a(String arg0)
byName(String arg0)
method_42633(String arg0)
byId(String id)
m_216455_(String arg0)
public E
a(String arg0, E arg1)
byName(String arg0, E arg1)
method_47920(String arg0, E arg1)
byId(String id, E fallback)
m_262792_(String p_263115_, E arg1)