public abstract class HPTask
extends java.util.TimerTask
| Constructor and Description |
|---|
HPTask(int healthDifference,
java.util.UUID uuid)
Initiates an hp task.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
boundsCheck()
Checks if the health difference is valid and adjusts it if it is not.
|
boolean |
cancel() |
abstract boolean |
isDone()
Checks if the animation is finished.
|
void |
run() |
public HPTask(int healthDifference,
java.util.UUID uuid)
healthDifference - The difference in health.uuid - The UUID of the Pokémon.protected abstract void boundsCheck()
public void run()
run in interface java.lang.Runnablerun in class java.util.TimerTaskpublic boolean cancel()
cancel in class java.util.TimerTaskpublic abstract boolean isDone()