Class OwnedScheduler
java.lang.Object
com.ultikits.ultitools.scheduling.internal.OwnedScheduler
- All Implemented Interfaces:
Scheduler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasync()Returns the wall-clock context for I/O, networking or computation, never tick-thread work.(package private) voidentity(org.bukkit.entity.Entity entity) Returns the context following an entity as it moves.global()Returns the context for server-wide work, such as world time, weather or server state.owner()Returns the owning module's name, orUltiToolsfor the framework, for diagnostics.region(org.bukkit.Location location) Returns the context owning the blocks/chunk at the location.region(org.bukkit.World world, int chunkX, int chunkZ) Returns the context owning the given chunk of the world.(package private) voidretire()(package private) TaskHandlesubmit(TaskRecord record, long delay)
-
Field Details
-
engine
-
live
-
name
-
global
-
async
-
retired
private volatile boolean retired
-
-
Constructor Details
-
OwnedScheduler
OwnedScheduler(PaperSchedulerEngine engine, String name)
-
-
Method Details
-
owner
-
global
-
async
Description copied from interface:SchedulerReturns the wall-clock context for I/O, networking or computation, never tick-thread work. SeeTaskContextfor delay, execution-thread and overlap guarantees. -
region
-
region
-
entity
Description copied from interface:SchedulerReturns the context following an entity as it moves. Tasks of an entity that is removed from the server are not run and end RETIRED: a non-player entity that dies, despawns or is discarded, or a player who quits. A player who dies and respawns, and any entity changing dimension, keeps its tasks.On an entity that is already removed, run, runLater and runRepeating return a handle that is already RETIRED (its completion fails with TaskRetiredException), supply returns a future already failed with TaskRetiredException, and execute throws RejectedExecutionException.
-
checkActive
void checkActive() -
submit
-
retire
void retire()
-