- java.lang.Object
-
- me.hsgamer.topper.agent.runnable.RunnableAgent<K,V,A>
-
- me.hsgamer.topper.spigot.agent.runnable.SpigotRunnableAgent<K,V,A>
-
- All Implemented Interfaces:
Agent<K,V>
public class SpigotRunnableAgent<K,V,A extends Agent<K,V> & Runnable> extends RunnableAgent<K,V,A>
-
-
Constructor Summary
Constructors Constructor Description SpigotRunnableAgent(A agent, io.github.projectunified.minelib.scheduler.common.scheduler.Scheduler scheduler, long interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Runnable
run(Runnable runnable)
This method is used to run the task and return aRunnable
to cancel it-
Methods inherited from class me.hsgamer.topper.agent.runnable.RunnableAgent
beforeStop, getAgent, onCreate, onRemove, onUnregister, onUpdate, start, stop
-
-
-
-
Constructor Detail
-
SpigotRunnableAgent
public SpigotRunnableAgent(A agent, io.github.projectunified.minelib.scheduler.common.scheduler.Scheduler scheduler, long interval)
-
-
Method Detail
-
run
protected Runnable run(Runnable runnable)
Description copied from class:RunnableAgent
This method is used to run the task and return aRunnable
to cancel it
-
-