Package org.spongepowered.api.scheduler
Interface ScheduledUpdate<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classScheduledUpdate.StateRepresents the state of aScheduledUpdate.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancancel()Cancels this scheduled update.Durationdelay()Gets thedelayuntil this update should cause the block to update.TaskPrioritypriority()Gets the priority of this scheduled block update.ScheduledUpdate.Statestate()Gets theScheduledUpdate.Stateof this scheduled update.Ttarget()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
Duration delay()
Gets thedelayuntil 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.Stateof this scheduled update.- Returns:
- The state
-
cancel
boolean cancel()
Cancels this scheduled update.- Returns:
- Returns if the scheduled update was successfully cancelled
-
-