Package devs.beer.nativepackets.api
Interface SchedulerAccess
Platform scheduler with explicit global, entity, region, and async ownership.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceCancellable task returned by the selected platform scheduler. -
Method Summary
Modifier and TypeMethodDescriptionSchedules work outside region ownership.voidCancels all tasks owned by the platform plugin.Schedules work for an entity, invokingretiredif ownership ends first.Schedules work on the global server context.globalLater(Object owner, Runnable task, long delayTicks) Schedules delayed work on the global server context.booleanownsEntity(Object entity) Returns whether the current thread owns the entity.booleanownsRegion(Object location) Returns whether the current thread owns the region containing the location.Schedules work for the region containing a platform location.
-
Method Details
-
global
Schedules work on the global server context. -
globalLater
Schedules delayed work on the global server context. -
entity
Schedules work for an entity, invokingretiredif ownership ends first. -
region
Schedules work for the region containing a platform location. -
async
Schedules work outside region ownership. -
ownsEntity
Returns whether the current thread owns the entity. -
ownsRegion
Returns whether the current thread owns the region containing the location. -
cancel
Cancels all tasks owned by the platform plugin.
-