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>

public class TextSerializer extends Object implements com.google.gson.JsonSerializer<Text>, com.google.gson.JsonDeserializer<Text>
  • 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 interface com.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 interface com.google.gson.JsonSerializer<Text>