Class EntitySerializer

java.lang.Object
net.md_5.bungee.api.chat.hover.content.EntitySerializer
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Entity>, com.google.gson.JsonSerializer<Entity>

public class EntitySerializer extends Object implements com.google.gson.JsonSerializer<Entity>, com.google.gson.JsonDeserializer<Entity>
  • Constructor Details

    • EntitySerializer

      public EntitySerializer()
  • Method Details

    • deserialize

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

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