Interface NotificationTicket


public interface NotificationTicket
Represents a notification that is being proposed to the engine.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    default void
    Invalidates this ticket.
    Gets the notifier block that scheduled this notification.
    default Vector3i
    Gets the notifier position that scheduled this notification.
    void
    setValid(boolean valid)
    Sets whether this ticket is valid or not.
    Gets the target block of this notification.
    default Vector3i
    Gets the target position of this notification.
    boolean
    Gets whether this ticket is marked as valid.
  • Method Details Link icon

    • notifier Link icon

      LocatableBlock notifier()
      Gets the notifier block that scheduled this notification.
      Returns:
      The notifier block
    • notifierPosition Link icon

      default Vector3i notifierPosition()
      Gets the notifier position that scheduled this notification.
      Returns:
      The notifier position
    • target Link icon

      BlockSnapshot target()
      Gets the target block of this notification.
      Returns:
      The target block
    • targetPosition Link icon

      default Vector3i targetPosition()
      Gets the target position of this notification.
      Returns:
      The target position
    • valid Link icon

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

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

      default void invalidate()
      Invalidates this ticket.