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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minestom.server.coordinate.Point
    deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)
     
    com.google.gson.JsonElement
    serialize(net.minestom.server.coordinate.Point src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      serialize in interface com.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:
      deserialize in interface com.google.gson.JsonDeserializer<net.minestom.server.coordinate.Point>
      Throws:
      com.google.gson.JsonParseException