java.lang.Object
java.util.TimerTask
com.pixelmonmod.pixelmon.client.gui.battles.tasks.SwitchTask
All Implemented Interfaces:
Runnable

public class SwitchTask extends TimerTask
Handles the in-battle switching animation.
  • Constructor Details

    • SwitchTask

      public SwitchTask(UUID pokemon, PixelmonClientData newPokemon)
      Initializes a switch task.
      Parameters:
      pokemon - The UUID of the Pokémon switching out.
      newPokemon - Data for the Pokémon switching in.
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • cancel

      public boolean cancel()
      Overrides:
      cancel in class TimerTask
    • isDone

      public boolean isDone()