Class TaskQueue.PrioritizedTask

java.lang.Object
net.minecraft.util.thread.TaskQueue.PrioritizedTask
All Implemented Interfaces:
Runnable
Enclosing interface:
TaskQueue<T,​F>

public static final class TaskQueue.PrioritizedTask
extends Object
implements Runnable
  • Field Details

    • priority

      private final int priority
    • runnable

      private final Runnable runnable
  • Constructor Details

    • PrioritizedTask

      public PrioritizedTask​(int priority, Runnable runnable)
  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getPriority

      public int getPriority()