Class ITaskQueue.Single<T>

java.lang.Object
net.minecraft.util.concurrent.ITaskQueue.Single<T>
All Implemented Interfaces:
ITaskQueue<T,T>
Enclosing interface:
ITaskQueue<T,F>

public static final class ITaskQueue.Single<T> extends Object implements ITaskQueue<T,T>
  • Field Details

    • queue

      private final Queue<T> queue
  • Constructor Details

    • Single

      public Single(Queue<T> p_i50962_1_)
  • Method Details

    • pop

      @Nullable public T pop()
      Specified by:
      pop in interface ITaskQueue<T,T>
    • push

      public boolean push(T p_212828_1_)
      Specified by:
      push in interface ITaskQueue<T,T>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface ITaskQueue<T,T>