Package net.minecraft.network.chat
Class Style.Serializer
java.lang.Object
net.minecraft.network.chat.Style.Serializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Style>
,com.google.gson.JsonSerializer<Style>
- Enclosing class:
- Style
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize(com.google.gson.JsonElement p_131200_, Type p_131201_, com.google.gson.JsonDeserializationContext p_131202_)
private static ClickEvent
getClickEvent(com.google.gson.JsonObject p_131215_)
private static ResourceLocation
getFont(com.google.gson.JsonObject p_131204_)
private static HoverEvent
getHoverEvent(com.google.gson.JsonObject p_131213_)
private static String
getInsertion(com.google.gson.JsonObject p_131217_)
private static Boolean
getOptionalFlag(com.google.gson.JsonObject p_131206_, String p_131207_)
private static TextColor
getTextColor(com.google.gson.JsonObject p_131223_)
com.google.gson.JsonElement
-
Constructor Details
-
Serializer
public Serializer()
-
-
Method Details
-
deserialize
@Nullable public Style deserialize(com.google.gson.JsonElement p_131200_, Type p_131201_, com.google.gson.JsonDeserializationContext p_131202_) throws com.google.gson.JsonParseException- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Style>
- Throws:
com.google.gson.JsonParseException
-
getFont
-
getHoverEvent
-
getClickEvent
-
getInsertion
-
getTextColor
-
getOptionalFlag
-
serialize
@Nullable public com.google.gson.JsonElement serialize(Style p_131209_, Type p_131210_, com.google.gson.JsonSerializationContext p_131211_)- Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Style>
-