Package org.spongepowered.api.scheduler
Interface ScheduledUpdate<T>
- All Superinterfaces:
Locatable
Represents a scheduled block update. SBUs with higher priorities are
processed first.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
cancel()
Cancels this scheduled update.delay()
Gets thedelay
until this update should cause the block to update.priority()
Gets the priority of this scheduled block update.state()
Gets theScheduledUpdate.State
of this scheduled update.target()
Gets the target of this scheduled update.Methods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, world
-
Method Details
-
target
T target()Gets the target of this scheduled update.- Returns:
- The target
-
delay
Duration delay()Gets thedelay
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
ScheduledUpdate.State state()Gets theScheduledUpdate.State
of this scheduled update.- Returns:
- The state
-
cancel
boolean cancel()Cancels this scheduled update.- Returns:
- Returns if the scheduled update was successfully cancelled
-