Class CancellableRunnable
java.lang.Object
me.hsgamer.hscore.bukkit.scheduler.CancellableRunnable
- All Implemented Interfaces:
BooleanSupplier
A runnable that mimics
BukkitRunnable so that it can be used in Scheduler as a BooleanSupplier.
The runnable can be cancelled by cancel().-
Constructor Details
-
CancellableRunnable
public CancellableRunnable()
-
-
Method Details
-
cancel
public void cancel()Cancel the runnable -
run
public abstract void run()Run the task -
getAsBoolean
public final boolean getAsBoolean()- Specified by:
getAsBooleanin interfaceBooleanSupplier
-