接口 BukkitWorker


public interface BukkitWorker
代表调度器的worker线程。这给了任务线程对象的信息、任务的所有者和任务id。

Workers是用来执行异步任务的。

  • 方法详细资料

    • getTaskId

      int getTaskId()
      返回worker执行的任务的任务id。

      原文:Returns the taskId for the task being executed by this worker.

      返回:
      任务id
    • getOwner

      返回拥有这个任务的插件。

      原文:Returns the Plugin that owns this task.

      返回:
      拥有这个任务的插件
    • getThread

      @NotNull @NotNull Thread getThread()
      返回worker的线程。

      原文:Returns the thread for the worker.

      返回:
      worker线程对象