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 Details

  • Constructor Details

    • AsyncPlatformTaskManager

      protected AsyncPlatformTaskManager(@NotNull @NotNull String extensionId)
  • Method Details

    • taskManager

      @NotNull public static @NotNull com.github.juliarn.npclib.api.PlatformTaskManager taskManager(@NotNull @NotNull String extensionIdentifier)
    • scheduleSync

      public void scheduleSync(@NotNull @NotNull Runnable task)
      Specified by:
      scheduleSync in interface com.github.juliarn.npclib.api.PlatformTaskManager
    • scheduleDelayedSync

      public void scheduleDelayedSync(@NotNull @NotNull Runnable task, int delayTicks)
      Specified by:
      scheduleDelayedSync in interface com.github.juliarn.npclib.api.PlatformTaskManager
    • scheduleAsync

      public void scheduleAsync(@NotNull @NotNull Runnable task)
      Specified by:
      scheduleAsync in interface com.github.juliarn.npclib.api.PlatformTaskManager
    • scheduleDelayedAsync

      public void scheduleDelayedAsync(@NotNull @NotNull Runnable task, int delayTicks)
      Specified by:
      scheduleDelayedAsync in interface com.github.juliarn.npclib.api.PlatformTaskManager