Constructor and Description |
---|
SpigotScheduler(org.bukkit.plugin.Plugin plugin) |
Modifier and Type | Method and Description |
---|---|
ScheduledTask |
runDelayed(Runnable task,
int delayTicks) |
void |
runRepeating(Consumer<ScheduledTask> task,
int delayTicks,
int intervalTicks) |
ScheduledTask |
runRepeating(Runnable task,
int delayTicks,
int intervalTicks) |
ScheduledTask |
runRepeating(Runnable task,
int intervalTicks,
@Nullable String name) |
ScheduledTask |
runRepeatingAsync(Runnable task,
Duration delay,
Duration interval,
@Nullable String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInstance, runRepeating
public void runRepeating(Consumer<ScheduledTask> task, int delayTicks, int intervalTicks)
runRepeating
in interface Scheduler
public ScheduledTask runRepeating(Runnable task, int delayTicks, int intervalTicks)
runRepeating
in interface Scheduler
public ScheduledTask runRepeating(Runnable task, int intervalTicks, @Nullable String name)
runRepeating
in interface Scheduler
public ScheduledTask runDelayed(Runnable task, int delayTicks)
runDelayed
in interface Scheduler
public ScheduledTask runRepeatingAsync(Runnable task, Duration delay, Duration interval, @Nullable String name)
runRepeatingAsync
in interface Scheduler