Class HealTask
java.lang.Object
java.util.TimerTask
com.pixelmonmod.pixelmon.client.gui.battles.tasks.HPTask
com.pixelmonmod.pixelmon.client.gui.battles.tasks.HealTask
- All Implemented Interfaces:
Runnable
Handles animation for hp being healed.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Checks if the health difference is valid and adjusts it if it is not.boolean
isDone()
Checks if the animation is finished.Methods inherited from class java.util.TimerTask
scheduledExecutionTime
-
Constructor Details
-
HealTask
Initiates a heal task.- Parameters:
healthDifference
- The hp to heal.uuid
- The UUID of the Pokémon.
-
-
Method Details
-
boundsCheck
protected void boundsCheck()Description copied from class:HPTask
Checks if the health difference is valid and adjusts it if it is not.- Specified by:
boundsCheck
in classHPTask
-
isDone
public boolean isDone()Description copied from class:HPTask
Checks if the animation is finished.
-