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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement json, Type type, com.google.gson.JsonDeserializationContext ctx) com.google.gson.JsonElement
serialize
(AttackAnimation animation, Type type, com.google.gson.JsonSerializationContext ctx)
-
Field Details
-
ADAPTER
-
-
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 interfacecom.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 interfacecom.google.gson.JsonDeserializer<AttackAnimation>
- Throws:
com.google.gson.JsonParseException
-