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 Summary
Modifier 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
-
schedule
Schedules a new update at the desired position with the provided delay.- Parameters:
pos- The positiontarget- The targetdelay- The delaytemporalUnit- The unit of the delay- Returns:
- The scheduled update
-
schedule
Schedules a new update with the givenT objectfor a desiredDuration- Parameters:
pos- The positiontarget- The targetdelay- The delay with a duration- Returns:
- The scheduled update
-
schedule
default 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 coordinatey- The y coordinatez- The z coordinatetarget- The target objectdelay- The delaytemporalUnit- The unit of time- Returns:
- The scheduled update
-
schedule
- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delay- Returns:
- The scheduled update
-
schedule
default ScheduledUpdate<T> schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit, TaskPriority priority) - Parameters:
pos- The positiontarget- The targetdelay- The delaytemporalUnit- The unit of timepriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
default ScheduledUpdate<T> schedule(Vector3i pos, T target, int delay, TemporalUnit temporalUnit, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
pos- The positiontarget- The targetdelay- The delaytemporalUnit- The unit of timepriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
- Parameters:
pos- The positiontarget- The targetdelay- The delaypriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
default ScheduledUpdate<T> schedule(Vector3i pos, T target, Duration delay, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
pos- The positiontarget- The targetdelay- The delaypriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
default ScheduledUpdate<T> schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit, TaskPriority priority) - Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delaytemporalUnit- The unit of timepriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
default ScheduledUpdate<T> schedule(int x, int y, int z, T target, int delay, TemporalUnit temporalUnit, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delaytemporalUnit- The unit of timepriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delaypriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
default ScheduledUpdate<T> schedule(int x, int y, int z, T target, Ticks ticks, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetticks- The delay, inTickspriority- The priority of the scheduled update- Returns:
- The scheduled update
- Throws:
IllegalArgumentException- if the delay is infinite
-
schedule
- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delay- Returns:
- The scheduled update
- Throws:
IllegalArgumentException- if the delay is infinite
-
schedule
- Parameters:
pos- The positiontarget- The targetdelay- The delay- Returns:
- The scheduled update
- Throws:
IllegalArgumentException- if the delay is infinite
-
schedule
- Parameters:
pos- The positiontarget- The targetdelay- The delaypriority- The priority of the scheduled update- Returns:
- The scheduled update
- Throws:
IllegalArgumentException- if the delay is infinite
-
schedule
default ScheduledUpdate<T> schedule(int x, int y, int z, T target, Duration delay, DefaultedRegistryReference<? extends TaskPriority> priority) - Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delaypriority- The priority of the scheduled update- Returns:
- The scheduled update
-
schedule
Schedules a new update at the desired position after the specified number ofTicks.- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- The targetdelay- The delay, inTickspriority- The priority of the scheduled update- Returns:
- The scheduled update
- Throws:
IllegalArgumentException- if the delay is infinite
-
isScheduled
Gets whether there's a scheduled update at the desired position with the provided target.- Parameters:
pos- The positiontarget- The target- Returns:
- True if there's an update scheduled
-
isScheduled
- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinatetarget- 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
-
scheduledAt
Gets a collection of scheduled updates at the desired position. There is no guarantee- Parameters:
x- The x coordinatey- The y coordinatez- The z coordinate- Returns:
- The collection of scheduled updates at the desired position
-