Class ScoreComponentSerializer

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

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

    • ScoreComponentSerializer

      public ScoreComponentSerializer()
  • Method Details

    • deserialize

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

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