Interface ScheduleUpdateTicket<T>


public interface ScheduleUpdateTicket<T>
Represents a scheduled block update that is being proposed to the engine.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the target block of this scheduled update.
    Gets the delay until this update should cause the block to update.
    default void
    Invalidates this ticket.
    Gets the priority of this scheduled block update.
    void
    setValid(boolean valid)
    Sets whether this ticket is valid or not.
    Gets the target of this scheduled update.
    boolean
    Gets whether this ticket is marked as valid.
  • Method Details

    • block

      Gets the target block of this scheduled update.
      Returns:
      The target block
    • 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
    • valid

      boolean valid()
      Gets whether this ticket is marked as valid.
      Returns:
      The valid state of this ticket
    • setValid

      void setValid(boolean valid)
      Sets whether this ticket is valid or not.
      Parameters:
      valid - The valid state of this ticket
    • invalidate

      default void invalidate()
      Invalidates this ticket.