Package me.ulrich.clans.loader
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Locationdeserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) com.google.gson.JsonElementserialize(org.bukkit.Location location, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
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:
serializein interfacecom.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:
deserializein interfacecom.google.gson.JsonDeserializer<org.bukkit.Location>
-