Class RepeatingTask
java.lang.Object
be.seeseemelk.mockbukkit.scheduler.ScheduledTask
be.seeseemelk.mockbukkit.scheduler.RepeatingTask
- All Implemented Interfaces:
org.bukkit.scheduler.BukkitTask
-
Constructor Summary
ConstructorsConstructorDescriptionRepeatingTask(int id, org.bukkit.plugin.Plugin plugin, boolean isSync, long scheduledTick, long period, @NotNull Runnable runnable) RepeatingTask(int id, org.bukkit.plugin.Plugin plugin, boolean isSync, long scheduledTick, long period, @NotNull Consumer<org.bukkit.scheduler.BukkitTask> consumer) -
Method Summary
Modifier and TypeMethodDescriptionlongGets the period of the timer.voidUpdates the scheduled tick for the next run.Methods inherited from class be.seeseemelk.mockbukkit.scheduler.ScheduledTask
addOnCancelled, cancel, getConsumer, getOwner, getRunnable, getScheduledTick, getTaskId, isCancelled, isRunning, isSync, run, setRunning, setScheduledTick
-
Constructor Details
-
RepeatingTask
public RepeatingTask(int id, org.bukkit.plugin.Plugin plugin, boolean isSync, long scheduledTick, long period, @NotNull @NotNull Runnable runnable) -
RepeatingTask
public RepeatingTask(int id, org.bukkit.plugin.Plugin plugin, boolean isSync, long scheduledTick, long period, @NotNull @NotNull Consumer<org.bukkit.scheduler.BukkitTask> consumer)
-
-
Method Details
-
getPeriod
public long getPeriod()Gets the period of the timer.- Returns:
- The period of the timer.
-
updateScheduledTick
public void updateScheduledTick()Updates the scheduled tick for the next run.
-