Interface ScheduleUpdateTicket<T>
public interface ScheduleUpdateTicket<T>
Represents a
scheduled block update that
is being proposed to the engine.-
Method Summary
Modifier and TypeMethodDescriptionblock()Gets the target block of this scheduled update.delay()Gets thedelayuntil this update should cause the block to update.default voidInvalidates this ticket.priority()Gets the priority of this scheduled block update.voidsetValid(boolean valid) Sets whether this ticket is valid or not.target()Gets the target of this scheduled update.booleanvalid()Gets whether this ticket is marked as valid.
-
Method Details
-
block
-
target
-
delay
-
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.
-