Class TextSerializer
java.lang.Object
net.md_5.bungee.api.chat.hover.content.TextSerializer
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Text>
,com.google.gson.JsonSerializer<Text>
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TextSerializer
public TextSerializer()
-
-
Method Details
-
deserialize
public Text deserialize(com.google.gson.JsonElement element, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Text>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(Text content, Type type, com.google.gson.JsonSerializationContext context) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<Text>
-