Class AttackAnimationTypeAdapter

java.lang.Object
com.pixelmonmod.pixelmon.api.attackAnimations.AttackAnimationTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<AttackAnimation>, com.google.gson.JsonSerializer<AttackAnimation>

public class AttackAnimationTypeAdapter extends Object implements com.google.gson.JsonSerializer<AttackAnimation>, com.google.gson.JsonDeserializer<AttackAnimation>
  • Field Details

  • Constructor Details

    • AttackAnimationTypeAdapter

      public AttackAnimationTypeAdapter()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(AttackAnimation animation, Type type, com.google.gson.JsonSerializationContext ctx)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<AttackAnimation>
    • deserialize

      public AttackAnimation deserialize(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext ctx) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<AttackAnimation>
      Throws:
      com.google.gson.JsonParseException