Class TaskQueue.Prioritized

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

public static final class TaskQueue.Prioritized extends Object implements TaskQueue<TaskQueue.PrioritizedTask>
Mappings:
Namespace Name
named net/minecraft/util/thread/TaskQueue$Prioritized
intermediary net/minecraft/class_3847$class_3848
official bsc$a
  • Field Details

    • queue

      private final Queue<Runnable>[] queue
      Mappings:
      Namespace Name Mixin selector
      named queue Lnet/minecraft/util/thread/TaskQueue$Prioritized;queue:[Ljava/util/Queue;
      intermediary field_35032 Lnet/minecraft/class_3847$class_3848;field_35032:[Ljava/util/Queue;
      official a Lbsc$a;a:[Ljava/util/Queue;
    • queueSize

      private final AtomicInteger queueSize
      Mappings:
      Namespace Name Mixin selector
      named queueSize Lnet/minecraft/util/thread/TaskQueue$Prioritized;queueSize:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_35033 Lnet/minecraft/class_3847$class_3848;field_35033:Ljava/util/concurrent/atomic/AtomicInteger;
      official b Lbsc$a;b:Ljava/util/concurrent/atomic/AtomicInteger;
  • Constructor Details

    • Prioritized

      public Prioritized(int priorityCount)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/thread/TaskQueue$Prioritized;<init>(I)V
      intermediary <init> Lnet/minecraft/class_3847$class_3848;<init>(I)V
      official <init> Lbsc$a;<init>(I)V
  • Method Details

    • poll

      @Nullable public @Nullable Runnable poll()
      Specified by:
      poll in interface TaskQueue<TaskQueue.PrioritizedTask>
      Mappings:
      Namespace Name Mixin selector
      named poll Lnet/minecraft/util/thread/TaskQueue;poll()Ljava/lang/Runnable;
      intermediary method_16909 Lnet/minecraft/class_3847;method_16909()Ljava/lang/Runnable;
      official a Lbsc;a()Ljava/lang/Runnable;
    • add

      public boolean add(TaskQueue.PrioritizedTask prioritizedTask)
      Specified by:
      add in interface TaskQueue<TaskQueue.PrioritizedTask>
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/thread/TaskQueue$Prioritized;add(Lnet/minecraft/util/thread/TaskQueue$PrioritizedTask;)Z
      intermediary method_16913 Lnet/minecraft/class_3847$class_3848;method_16913(Lnet/minecraft/class_3847$class_3907;)Z
      official a Lbsc$a;a(Lbsc$c;)Z
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface TaskQueue<TaskQueue.PrioritizedTask>
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/util/thread/TaskQueue;isEmpty()Z
      intermediary method_16911 Lnet/minecraft/class_3847;method_16911()Z
      official b Lbsc;b()Z
    • getSize

      public int getSize()
      Specified by:
      getSize in interface TaskQueue<TaskQueue.PrioritizedTask>
      Mappings:
      Namespace Name Mixin selector
      named getSize Lnet/minecraft/util/thread/TaskQueue;getSize()I
      intermediary method_34706 Lnet/minecraft/class_3847;method_34706()I
      official c Lbsc;c()I