net.minecraft.network.chat

public class Component$Serializer

implements com.google.gson.JsonDeserializer<MutableComponent>, com.google.gson.JsonSerializer<Component>

os$a
net.minecraft.network.chat.Component$Serializer
net.minecraft.class_2561$class_2562
net.minecraft.text.Text$Serializer
net.minecraft.src.C_4996_$C_4997_
net.minecraft.network.chat.IChatBaseComponent$ChatSerializer

Field summary

Modifier and TypeField
private static final com.google.gson.Gson
a
GSON
field_11754
GSON
f_130685_
private static final Field
b
JSON_READER_POS
field_11753
JSON_READER_POS
f_130686_
private static final Field
c
JSON_READER_LINESTART
field_11752
JSON_READER_LINE_START
f_130687_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public MutableComponent
a(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
method_10871(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement arg0, Type arg1, com.google.gson.JsonDeserializationContext arg2)
deserialize(com.google.gson.JsonElement p_130695_, Type p_130696_, com.google.gson.JsonDeserializationContext arg2)
private Optional<Component>
a(Type arg0, com.google.gson.JsonDeserializationContext arg1, com.google.gson.JsonObject arg2)
parseSeparator(Type arg0, com.google.gson.JsonDeserializationContext arg1, com.google.gson.JsonObject arg2)
method_36329(Type arg0, com.google.gson.JsonDeserializationContext arg1, com.google.gson.JsonObject arg2)
getSeparator(Type type, com.google.gson.JsonDeserializationContext context, com.google.gson.JsonObject json)
m_178415_(Type p_178417_, com.google.gson.JsonDeserializationContext p_178418_, com.google.gson.JsonObject arg2)
private void
a(pc arg0, com.google.gson.JsonObject arg1, com.google.gson.JsonSerializationContext arg2)
serializeStyle(Style arg0, com.google.gson.JsonObject arg1, com.google.gson.JsonSerializationContext arg2)
method_10875(class_2583 arg0, com.google.gson.JsonObject arg1, com.google.gson.JsonSerializationContext arg2)
addStyle(Style style, com.google.gson.JsonObject json, com.google.gson.JsonSerializationContext context)
m_130709_(C_5020_ p_130711_, com.google.gson.JsonObject p_130712_, com.google.gson.JsonSerializationContext arg2)
public com.google.gson.JsonElement
a(os arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(Component arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
method_10874(class_2561 arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(Text arg0, Type arg1, com.google.gson.JsonSerializationContext arg2)
serialize(C_4996_ p_130707_, Type p_130708_, com.google.gson.JsonSerializationContext arg2)
private void
a(com.google.gson.JsonSerializationContext arg0, com.google.gson.JsonObject arg1, Optional<os> arg2)
serializeSeparator(com.google.gson.JsonSerializationContext arg0, com.google.gson.JsonObject arg1, Optional<Component> arg2)
method_36328(com.google.gson.JsonSerializationContext arg0, com.google.gson.JsonObject arg1, Optional<class_2561> arg2)
addSeparator(com.google.gson.JsonSerializationContext context, com.google.gson.JsonObject json, Optional<Text> separator)
m_178411_(com.google.gson.JsonSerializationContext p_178413_, com.google.gson.JsonObject p_178414_, Optional<C_4996_> arg2)
public static String
a(os arg0)
toJson(Component arg0)
method_10867(class_2561 arg0)
toJson(Text text)
m_130703_(C_4996_ p_130704_)
public static com.google.gson.JsonElement
b(os arg0)
toJsonTree(Component arg0)
method_10868(class_2561 arg0)
toJsonTree(Text text)
m_130716_(C_4996_ p_130717_)
public static MutableComponent
a(String arg0)
fromJson(String arg0)
method_10877(String arg0)
fromJson(String json)
m_130701_(String p_130702_)
public static MutableComponent
a(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement arg0)
method_10872(com.google.gson.JsonElement arg0)
fromJson(com.google.gson.JsonElement json)
m_130691_(com.google.gson.JsonElement p_130692_)
public static MutableComponent
b(String arg0)
fromJsonLenient(String arg0)
method_10873(String arg0)
fromLenientJson(String json)
m_130714_(String p_130715_)
public static MutableComponent
a(com.mojang.brigadier.StringReader arg0)
fromJson(com.mojang.brigadier.StringReader arg0)
method_10879(com.mojang.brigadier.StringReader arg0)
fromJson(com.mojang.brigadier.StringReader reader)
m_130699_(com.mojang.brigadier.StringReader p_130700_)
private static int
a(com.google.gson.stream.JsonReader arg0)
getPos(com.google.gson.stream.JsonReader arg0)
method_10880(com.google.gson.stream.JsonReader arg0)
getPosition(com.google.gson.stream.JsonReader reader)
m_130697_(com.google.gson.stream.JsonReader p_130698_)