Class ItemSerializer

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

public class ItemSerializer extends Object implements com.google.gson.JsonSerializer<net.md_5.bungee.api.chat.hover.content.Item>, com.google.gson.JsonDeserializer<net.md_5.bungee.api.chat.hover.content.Item>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.md_5.bungee.api.chat.hover.content.Item
    deserialize(com.google.gson.JsonElement element, Type type, com.google.gson.JsonDeserializationContext context)
     
    com.google.gson.JsonElement
    serialize(net.md_5.bungee.api.chat.hover.content.Item content, Type type, com.google.gson.JsonSerializationContext context)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemSerializer

      public ItemSerializer()
  • Method Details

    • deserialize

      public net.md_5.bungee.api.chat.hover.content.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<net.md_5.bungee.api.chat.hover.content.Item>
      Throws:
      com.google.gson.JsonParseException
    • serialize

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