Interface Runner
public interface Runner
The runner as a part of
Scheduler-
Method Summary
Modifier and TypeMethodDescriptiondefault TaskrunEntityTask(org.bukkit.entity.Entity entity, Runnable runnable) Run a task related to an entityrunEntityTask(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired) Run a task related to an entitydefault TaskrunEntityTaskLater(org.bukkit.entity.Entity entity, Runnable runnable, long delay) Run a delayed task related to an entitydefault TaskrunEntityTaskLater(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, long delay) Run a delayed task related to an entityrunEntityTaskLater(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, TaskTime delay) Run a delayed task related to an entitydefault TaskrunEntityTaskLater(org.bukkit.entity.Entity entity, Runnable runnable, TaskTime delay) Run a delayed task related to an entitydefault TaskrunEntityTaskLaterWithFinalizer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable finalizer, long delay) Run a delayed task related to an entity with a finalizer.default TaskrunEntityTaskLaterWithFinalizer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable finalizer, TaskTime delay) Run a delayed task related to an entity with a finalizer.default TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, long delay, long period) Run a task repeatedly related to an entitydefault TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, long delay, long period) Run a task repeatedly related to an entitydefault TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entitydefault TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entitydefault TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, long delay, long period) Run a task repeatedly related to an entitydefault TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, Runnable retired, long delay, long period) Run a task repeatedly related to an entityrunEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, Runnable retired, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entitydefault TaskrunEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entitydefault TaskrunEntityTaskWithFinalizer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable finalizer) Run a task related to an entity with a finalizer.runLocationTask(org.bukkit.Location location, Runnable runnable) Run a task related to a locationdefault TaskrunLocationTaskLater(org.bukkit.Location location, Runnable runnable, long delay) Run a delayed task related to a locationrunLocationTaskLater(org.bukkit.Location location, Runnable runnable, TaskTime delay) Run a delayed task related to a locationdefault TaskrunLocationTaskTimer(org.bukkit.Location location, Runnable runnable, long delay, long period) Run a task repeatedly related to a locationdefault TaskrunLocationTaskTimer(org.bukkit.Location location, Runnable runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to a locationdefault TaskrunLocationTaskTimer(org.bukkit.Location location, BooleanSupplier runnable, long delay, long period) Run a task repeatedly related to a locationrunLocationTaskTimer(org.bukkit.Location location, BooleanSupplier runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to a locationRun a taskdefault TaskrunTaskLater(Runnable runnable, long delay) Run a delayed taskrunTaskLater(Runnable runnable, TaskTime delay) Run a delayed taskdefault TaskrunTaskTimer(Runnable runnable, long delay, long period) Run a task repeatedlydefault TaskrunTaskTimer(Runnable runnable, TimerTaskTime timerTaskTime) Run a task repeatedlydefault TaskrunTaskTimer(BooleanSupplier runnable, long delay, long period) Run a task repeatedlyrunTaskTimer(BooleanSupplier runnable, TimerTaskTime timerTaskTime) Run a task repeatedly
-
Method Details
-
runTask
Run a task- Parameters:
runnable- the task- Returns:
- the task
-
runTaskLater
Run a delayed task- Parameters:
runnable- the taskdelay- the delay before the task is run- Returns:
- the task
-
runTaskTimer
Run a task repeatedly- Parameters:
runnable- the task. Return true to continue, false to stop.timerTaskTime- the timer task time- Returns:
- the task
-
runTaskTimer
Run a task repeatedly- Parameters:
runnable- the tasktimerTaskTime- the timer task time- Returns:
- the task
-
runEntityTask
Run a task related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskretired- the task when the entity is retired (e.g. removed, invalid)- Returns:
- the task
-
runEntityTaskLater
Task runEntityTaskLater(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, TaskTime delay) Run a delayed task related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskretired- the task when the entity is retired (e.g. removed, invalid)delay- the delay before the task is run- Returns:
- the task
-
runEntityTaskTimer
Task runEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, Runnable retired, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the task. Return true to continue, false to stop.retired- the task when the entity is retired (e.g. removed, invalid)timerTaskTime- the timer task time- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskretired- the task when the entity is retired (e.g. removed, invalid)timerTaskTime- the timer task time- Returns:
- the task
-
runEntityTaskLater
Run a delayed task related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskdelay- the delay before the task is run- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the task. Return true to continue, false to stop.timerTaskTime- the timer task time- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the tasktimerTaskTime- the timer task time- Returns:
- the task
-
runEntityTaskLaterWithFinalizer
default Task runEntityTaskLaterWithFinalizer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable finalizer, TaskTime delay) Run a delayed task related to an entity with a finalizer. The finalizer will be run both after the task is run and when the entity is retired.- Parameters:
entity- the entity that the task is related torunnable- the taskfinalizer- the finalizerdelay- the delay before the task is run- Returns:
- the task
-
runLocationTask
Run a task related to a location- Parameters:
location- the location that the task is related torunnable- the task- Returns:
- the task
-
runLocationTaskLater
Run a delayed task related to a location- Parameters:
location- the location that the task is related torunnable- the taskdelay- the delay before the task is run- Returns:
- the task
-
runLocationTaskTimer
Task runLocationTaskTimer(org.bukkit.Location location, BooleanSupplier runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to a location- Parameters:
location- the location that the task is related torunnable- the task. Return true to continue, false to stop.timerTaskTime- the timer task time- Returns:
- the task
-
runLocationTaskTimer
default Task runLocationTaskTimer(org.bukkit.Location location, Runnable runnable, TimerTaskTime timerTaskTime) Run a task repeatedly related to a location- Parameters:
location- the location that the task is related torunnable- the tasktimerTaskTime- the timer task time- Returns:
- the task
-
runTaskLater
Run a delayed task- Parameters:
runnable- the taskdelay- the delay in ticks before the task is run- Returns:
- the task
-
runTaskTimer
Run a task repeatedly- Parameters:
runnable- the task. Return true to continue, false to stop.delay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runTaskTimer
Run a task repeatedly- Parameters:
runnable- the taskdelay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runEntityTaskLater
default Task runEntityTaskLater(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, long delay) Run a delayed task related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskretired- the task when the entity is retired (e.g. removed, invalid)delay- the delay in ticks before the task is run- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, Runnable retired, long delay, long period) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the task. Return true to continue, false to stop.retired- the task when the entity is retired (e.g. removed, invalid)delay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable retired, long delay, long period) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskretired- the task when the entity is retired (e.g. removed, invalid)delay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runEntityTask
Run a task related to an entity- Parameters:
entity- the entity that the task is related torunnable- the task- Returns:
- the task
-
runEntityTaskLater
Run a delayed task related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskdelay- the delay in ticks before the task is run- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, BooleanSupplier runnable, long delay, long period) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the task. Return true to continue, false to stop.delay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runEntityTaskTimer
default Task runEntityTaskTimer(org.bukkit.entity.Entity entity, Runnable runnable, long delay, long period) Run a task repeatedly related to an entity- Parameters:
entity- the entity that the task is related torunnable- the taskdelay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runEntityTaskWithFinalizer
default Task runEntityTaskWithFinalizer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable finalizer) Run a task related to an entity with a finalizer. The finalizer will be run both after the task is run and when the entity is retired.- Parameters:
entity- the entity that the task is related torunnable- the taskfinalizer- the finalizer- Returns:
- the task
-
runEntityTaskLaterWithFinalizer
default Task runEntityTaskLaterWithFinalizer(org.bukkit.entity.Entity entity, Runnable runnable, Runnable finalizer, long delay) Run a delayed task related to an entity with a finalizer. The finalizer will be run both after the task is run and when the entity is retired.- Parameters:
entity- the entity that the task is related torunnable- the taskfinalizer- the finalizerdelay- the delay in ticks before the task is run- Returns:
- the task
-
runLocationTaskLater
Run a delayed task related to a location- Parameters:
location- the location that the task is related torunnable- the taskdelay- the delay in ticks before the task is run- Returns:
- the task
-
runLocationTaskTimer
default Task runLocationTaskTimer(org.bukkit.Location location, BooleanSupplier runnable, long delay, long period) Run a task repeatedly related to a location- Parameters:
location- the location that the task is related torunnable- the task. Return true to continue, false to stop.delay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-
runLocationTaskTimer
default Task runLocationTaskTimer(org.bukkit.Location location, Runnable runnable, long delay, long period) Run a task repeatedly related to a location- Parameters:
location- the location that the task is related torunnable- the taskdelay- the delay in ticks before the task is runperiod- the period in ticks between each run- Returns:
- the task
-