Class AsyncPlatformTaskManager
java.lang.Object
com.github.juliarn.npclib.common.task.AsyncPlatformTaskManager
- All Implemented Interfaces:
com.github.juliarn.npclib.api.PlatformTaskManager
public class AsyncPlatformTaskManager
extends Object
implements com.github.juliarn.npclib.api.PlatformTaskManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate final ExecutorServiceprivate final ScheduledExecutorService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidscheduleAsync(@NotNull Runnable task) voidscheduleDelayedAsync(@NotNull Runnable task, int delayTicks) voidscheduleDelayedSync(@NotNull Runnable task, int delayTicks) voidscheduleSync(@NotNull Runnable task) static @NotNull com.github.juliarn.npclib.api.PlatformTaskManagertaskManager(@NotNull String extensionIdentifier)
-
Field Details
-
ONE_TICK_MS
private static final long ONE_TICK_MS- See Also:
-
runOnceExecutorService
-
scheduledExecutorService
-
-
Constructor Details
-
AsyncPlatformTaskManager
-
-
Method Details
-
taskManager
@NotNull public static @NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager(@NotNull @NotNull String extensionIdentifier) -
scheduleSync
- Specified by:
scheduleSyncin interfacecom.github.juliarn.npclib.api.PlatformTaskManager
-
scheduleDelayedSync
- Specified by:
scheduleDelayedSyncin interfacecom.github.juliarn.npclib.api.PlatformTaskManager
-
scheduleAsync
- Specified by:
scheduleAsyncin interfacecom.github.juliarn.npclib.api.PlatformTaskManager
-
scheduleDelayedAsync
- Specified by:
scheduleDelayedAsyncin interfacecom.github.juliarn.npclib.api.PlatformTaskManager
-