Class TaskQueue.Simple<T>

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

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

    • queue

      private final Queue<T> 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 Lbpq$c;a:Ljava/util/Queue;
  • Constructor Details

    • Simple

      public Simple(Queue<T> 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> Lbpq$c;<init>(Ljava/util/Queue;)V
  • Method Details

    • poll

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

      public boolean add(T message)
      Specified by:
      add in interface TaskQueue<T,T>
      Mappings:
      Namespace Name Mixin selector
      named add Lnet/minecraft/util/thread/TaskQueue;add(Ljava/lang/Object;)Z
      intermediary method_16910 Lnet/minecraft/class_3847;method_16910(Ljava/lang/Object;)Z
      official a Lbpq;a(Ljava/lang/Object;)Z
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface TaskQueue<T,T>
      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 Lbpq;b()Z
    • getSize

      public int getSize()
      Specified by:
      getSize in interface TaskQueue<T,T>
      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 Lbpq;c()I