Interface ScheduledUpdate<T>

All Superinterfaces:
Locatable

public interface ScheduledUpdate<T> extends Locatable
Represents a scheduled block update. SBUs with higher priorities are processed first.
  • Method Details

    • target

      T target()
      Gets the target of this scheduled update.
      Returns:
      The target
    • delay

      Duration delay()
      Gets the delay until this update should cause the block to update.
      Returns:
      The delay until this SBU should cause the block to update
    • priority

      TaskPriority priority()
      Gets the priority of this scheduled block update.
      Returns:
      The priority of this scheduled block update
    • state

      Gets the ScheduledUpdate.State of this scheduled update.
      Returns:
      The state
    • cancel

      boolean cancel()
      Cancels this scheduled update.
      Returns:
      Returns if the scheduled update was successfully cancelled