Class SelectorComponentSerializer

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

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

    • SelectorComponentSerializer

      public SelectorComponentSerializer()
  • Method Details

    • deserialize

      public SelectorComponent 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<SelectorComponent>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize(SelectorComponent component, Type type, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<SelectorComponent>