Class AttackTypeAdapter

java.lang.Object
com.google.gson.TypeAdapter<Attack>
com.pixelmonmod.pixelmon.api.pokemon.stats.AttackTypeAdapter

public class AttackTypeAdapter extends com.google.gson.TypeAdapter<Attack>
This adapter serializes Attack as the English name.
  • Constructor Details

    • AttackTypeAdapter

      public AttackTypeAdapter()
  • Method Details

    • write

      public void write(com.google.gson.stream.JsonWriter out, Attack value) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<Attack>
      Throws:
      IOException
    • read

      public Attack read(com.google.gson.stream.JsonReader in) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<Attack>
      Throws:
      IOException