Class PulseTask

java.lang.Object
org.bukkit.scheduler.BukkitRunnable
net.glowstone.scheduler.PulseTask
All Implemented Interfaces:
Runnable

public class PulseTask extends org.bukkit.scheduler.BukkitRunnable
  • Constructor Summary

    Constructors
    Constructor
    Description
    PulseTask(GlowBlock block, boolean async, long delay, boolean single)
    Creates a block update task.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run()
     
    void
    Schedules this task.

    Methods inherited from class org.bukkit.scheduler.BukkitRunnable

    cancel, getTaskId, isCancelled, runTask, runTaskAsynchronously, runTaskLater, runTaskLaterAsynchronously, runTaskTimer, runTaskTimerAsynchronously

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PulseTask

      public PulseTask(GlowBlock block, boolean async, long delay, boolean single)
      Creates a block update task.
      Parameters:
      block - the block to update
      async - whether to run asynchronously
      delay - the ticks to wait before running the task
      single - if true, run this task only once; if false, repeat every delay ticks
  • Method Details

    • startPulseTask

      public void startPulseTask()
      Schedules this task.
    • run

      public void run()