Class LocationTypeAdapter

java.lang.Object
me.ulrich.clans.loader.LocationTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<org.bukkit.Location>, com.google.gson.JsonSerializer<org.bukkit.Location>

public class LocationTypeAdapter extends Object implements com.google.gson.JsonSerializer<org.bukkit.Location>, com.google.gson.JsonDeserializer<org.bukkit.Location>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.Location
    deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
     
    com.google.gson.JsonElement
    serialize(org.bukkit.Location location, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
     

    Methods inherited from class java.lang.Object

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

    • LocationTypeAdapter

      public LocationTypeAdapter()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(org.bukkit.Location location, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<org.bukkit.Location>
    • deserialize

      public org.bukkit.Location deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext)
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<org.bukkit.Location>