Class TextComponentSerializer

java.lang.Object
net.md_5.bungee.chat.BaseComponentSerializer
net.md_5.bungee.chat.TextComponentSerializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<TextComponent>, com.google.gson.JsonSerializer<TextComponent>

public class TextComponentSerializer extends BaseComponentSerializer implements com.google.gson.JsonSerializer<TextComponent>, com.google.gson.JsonDeserializer<TextComponent>
  • Constructor Details

    • TextComponentSerializer

      public TextComponentSerializer()
  • Method Details

    • deserialize

      public TextComponent deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<TextComponent>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(TextComponent src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<TextComponent>