Class ItemSerializer

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

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

    • ItemSerializer

      public ItemSerializer()
  • Method Details

    • deserialize

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

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