Class HPTask
java.lang.Object
java.util.TimerTask
com.pixelmonmod.pixelmon.client.gui.battles.tasks.HPTask
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
DamageTask
,HealTask
Handles animation for hp being modified.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.util.TimerTask
scheduledExecutionTime
-
Constructor Details
-
HPTask
Initiates an hp task.- Parameters:
healthDifference
- The difference in health.uuid
- The UUID of the Pokémon.
-
-
Method Details
-
boundsCheck
protected abstract void boundsCheck()Checks if the health difference is valid and adjusts it if it is not. -
run
public void run() -
cancel
public boolean cancel() -
isDone
public abstract boolean isDone()Checks if the animation is finished.- Returns:
- Whether the animation is finished.
-