Interface NotificationTicket
public interface NotificationTicket
Represents a notification that is being proposed to the engine.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidInvalidates this ticket.notifier()Gets the notifier block that scheduled this notification.default Vector3iGets the notifier position that scheduled this notification.voidsetValid(boolean valid) Sets whether this ticket is valid or not.target()Gets the target block of this notification.default Vector3iGets the target position of this notification.booleanvalid()Gets whether this ticket is marked as valid.
-
Method Details
-
notifier
LocatableBlock notifier()Gets the notifier block that scheduled this notification.- Returns:
- The notifier block
-
notifierPosition
Gets the notifier position that scheduled this notification.- Returns:
- The notifier position
-
target
BlockSnapshot target()Gets the target block of this notification.- Returns:
- The target block
-
targetPosition
Gets the target position of this notification.- Returns:
- The target position
-
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.
-