Class RepeatingTask

java.lang.Object
be.seeseemelk.mockbukkit.scheduler.ScheduledTask
be.seeseemelk.mockbukkit.scheduler.RepeatingTask
All Implemented Interfaces:
org.bukkit.scheduler.BukkitTask

public class RepeatingTask extends ScheduledTask
  • Constructor Details

    • RepeatingTask

      public RepeatingTask(int id, org.bukkit.plugin.Plugin plugin, boolean isSync, long scheduledTick, long period, Runnable runnable)
  • 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.
    • run

      public void run()
      Description copied from class: ScheduledTask
      Runs the task if it has not been cancelled.
      Overrides:
      run in class ScheduledTask