Package org.spongepowered.api.scheduler
Interface ScheduledUpdate<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ScheduledUpdate.State
Represents the state of aScheduledUpdate
.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
cancel()
Cancels this scheduled update.java.time.Duration
delay()
Gets thedelay
until this update should cause the block to update.TaskPriority
priority()
Gets the priority of this scheduled block update.ScheduledUpdate.State
state()
Gets theScheduledUpdate.State
of this scheduled update.T
target()
Gets the target of this scheduled update.-
Methods inherited from interface org.spongepowered.api.world.Locatable
blockPosition, location, serverLocation, world
-
-
-
-
Method Detail
-
target
T target()
Gets the target of this scheduled update.- Returns:
- The target
-
delay
java.time.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
-
-