Package org.spongepowered.api.scheduler
Interface ScheduledUpdateList<T>
- Type Parameters:
- T- The type of update objects that are being scheduled
public interface ScheduledUpdateList<T>
- 
Method SummaryModifier and TypeMethodDescriptionbooleanisScheduled(int x, int y, int z, T target) default booleanisScheduled(Vector3i pos, T target) Gets whether there's a scheduled update at the desired position with the provided target.default ScheduledUpdate<T>schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit) Schedules a new update for the desired targetdefault ScheduledUpdate<T>schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit, DefaultedRegistryReference<? extends TaskPriority> priority) default ScheduledUpdate<T>schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit, TaskPriority priority) default ScheduledUpdate<T>default ScheduledUpdate<T>schedule(int x, int y, int z, T target, Duration delay, DefaultedRegistryReference<? extends TaskPriority> priority) schedule(int x, int y, int z, T target, Duration delay, TaskPriority priority) default ScheduledUpdate<T>default ScheduledUpdate<T>schedule(int x, int y, int z, T target, Ticks ticks, DefaultedRegistryReference<? extends TaskPriority> priority) schedule(int x, int y, int z, T target, Ticks delay, TaskPriority priority) Schedules a new update at the desired position after the specified number ofTicks.default ScheduledUpdate<T>schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit) Schedules a new update at the desired position with the provided delay.default ScheduledUpdate<T>schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit, DefaultedRegistryReference<? extends TaskPriority> priority) default ScheduledUpdate<T>schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit, TaskPriority priority) default ScheduledUpdate<T>Schedules a new update with the givenT objectfor a desiredDurationdefault ScheduledUpdate<T>schedule(Vector3i pos, T target, Duration delay, DefaultedRegistryReference<? extends TaskPriority> priority) default ScheduledUpdate<T>schedule(Vector3i pos, T target, Duration delay, TaskPriority priority) default ScheduledUpdate<T>default ScheduledUpdate<T>schedule(Vector3i pos, T target, Ticks delay, TaskPriority priority) Collection<? extends ScheduledUpdate<T>>scheduledAt(int x, int y, int z) Gets a collection of scheduled updates at the desired position.default Collection<? extends ScheduledUpdate<T>>scheduledAt(Vector3i pos) 
- 
Method Details- 
scheduleSchedules a new update at the desired position with the provided delay.- Parameters:
- pos- The position
- target- The target
- delay- The delay
- temporalUnit- The unit of the delay
- Returns:
- The scheduled update
 
- 
scheduleSchedules a new update with the givenT objectfor a desiredDuration- Parameters:
- pos- The position
- target- The target
- delay- The delay with a duration
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit) Schedules a new update for the desired target- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target object
- delay- The delay
- temporalUnit- The unit of time
- Returns:
- The scheduled update
 
- 
schedule- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit, TaskPriority priority) - Parameters:
- pos- The position
- target- The target
- delay- The delay
- temporalUnit- The unit of time
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
- pos- The position
- target- The target
- delay- The delay
- temporalUnit- The unit of time
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
schedule- Parameters:
- pos- The position
- target- The target
- delay- The delay
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(Vector3i pos, T target, Duration delay, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
- pos- The position
- target- The target
- delay- The delay
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit, TaskPriority priority) - Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay
- temporalUnit- The unit of time
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay
- temporalUnit- The unit of time
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
schedule- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(int x, int y, int z, T target, Ticks ticks, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- ticks- The delay, in- Ticks
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
schedule- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay
- Returns:
- The scheduled update
 
- 
schedule- Parameters:
- pos- The position
- target- The target
- delay- The delay
- Returns:
- The scheduled update
 
- 
schedule- Parameters:
- pos- The position
- target- The target
- delay- The delay
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduledefault ScheduledUpdate<T> schedule(int x, int y, int z, T target, Duration delay, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
scheduleSchedules a new update at the desired position after the specified number ofTicks.- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- delay- The delay, in- Ticks
- priority- The priority of the scheduled update
- Returns:
- The scheduled update
 
- 
isScheduledGets whether there's a scheduled update at the desired position with the provided target.- Parameters:
- pos- The position
- target- The target
- Returns:
- True if there's an update scheduled
 
- 
isScheduled- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- target- The target
- Returns:
- True if there's an update scheduled
 
- 
scheduledAt- Parameters:
- pos- The position
- Returns:
- The collection of scheduled updates at the desired position
 
- 
scheduledAtGets a collection of scheduled updates at the desired position. There is no guarantee- Parameters:
- x- The x coordinate
- y- The y coordinate
- z- The z coordinate
- Returns:
- The collection of scheduled updates at the desired position
 
 
-