Class PointAdapter
java.lang.Object
fr.ghostrider584.axiom.annotation.storage.json.serializer.PointAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<net.minestom.server.coordinate.Point>, com.google.gson.JsonSerializer<net.minestom.server.coordinate.Point>
public class PointAdapter
extends Object
implements com.google.gson.JsonSerializer<net.minestom.server.coordinate.Point>, com.google.gson.JsonDeserializer<net.minestom.server.coordinate.Point>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.coordinate.Pointdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElementserialize(net.minestom.server.coordinate.Point src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
PointAdapter
public PointAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(net.minestom.server.coordinate.Point src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<net.minestom.server.coordinate.Point>
-
deserialize
public net.minestom.server.coordinate.Point deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<net.minestom.server.coordinate.Point>- Throws:
com.google.gson.JsonParseException
-