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
official apc$c
intermediary net/minecraft/class_3847$class_3849
named net/minecraft/util/thread/TaskQueue$Simple
  • Field Details

    • queue

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

    • Simple

      public Simple​(Queue<T> queue)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lapc$c;<init>(Ljava/util/Queue;)V
      intermediary <init> Lnet/minecraft/class_3847$class_3849;<init>(Ljava/util/Queue;)V
      named <init> Lnet/minecraft/util/thread/TaskQueue$Simple;<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
      official a Lapc;a()Ljava/lang/Object;
      intermediary method_16909 Lnet/minecraft/class_3847;method_16909()Ljava/lang/Object;
      named poll Lnet/minecraft/util/thread/TaskQueue;poll()Ljava/lang/Object;
    • add

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

      public boolean isEmpty()
      Specified by:
      isEmpty in interface TaskQueue<T,​T>
      Mappings:
      Namespace Name Mixin selector
      official b Lapc;b()Z
      intermediary method_16911 Lnet/minecraft/class_3847;method_16911()Z
      named isEmpty Lnet/minecraft/util/thread/TaskQueue;isEmpty()Z