Class TaskQueue.Simple

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

public static final class TaskQueue.Simple extends Object implements TaskQueue<Runnable>
Mappings:
Namespace Name
named net/minecraft/util/thread/TaskQueue$Simple
intermediary net/minecraft/class_3847$class_3849
official bsc$b
  • Field Details

    • queue

      private final Queue<Runnable> queue
      Mappings:
      Namespace Name Mixin selector
      named queue Lnet/minecraft/util/thread/TaskQueue$Simple;queue:Ljava/util/Queue;
      intermediary field_17045 Lnet/minecraft/class_3847$class_3849;field_17045:Ljava/util/Queue;
      official a Lbsc$b;a:Ljava/util/Queue;
  • Constructor Details

    • Simple

      public Simple(Queue<Runnable> queue)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/thread/TaskQueue$Simple;<init>(Ljava/util/Queue;)V
      intermediary <init> Lnet/minecraft/class_3847$class_3849;<init>(Ljava/util/Queue;)V
      official <init> Lbsc$b;<init>(Ljava/util/Queue;)V
  • Method Details

    • poll

      @Nullable public @Nullable Runnable poll()
      Specified by:
      poll in interface TaskQueue<Runnable>
      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(Runnable runnable)
      Specified by:
      add in interface TaskQueue<Runnable>
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/thread/TaskQueue;add(Ljava/lang/Runnable;)Z
      intermediary method_16910 Lnet/minecraft/class_3847;method_16910(Ljava/lang/Runnable;)Z
      official a Lbsc;a(Ljava/lang/Runnable;)Z
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface TaskQueue<Runnable>
      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<Runnable>
      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