Package net.minecraft.util.concurrent
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 java.lang.Object implements ITaskQueue<T,T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.util.concurrent.ITaskQueue
ITaskQueue.Priority, ITaskQueue.RunnableWithPriority, ITaskQueue.Single<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isEmpty()
T
pop()
boolean
push(T p_212828_1_)
-
-
-
Field Detail
-
queue
private final java.util.Queue<T> queue
-
-
Constructor Detail
-
Single
public Single(java.util.Queue<T> p_i50962_1_)
-
-
Method Detail
-
pop
@Nullable public T pop()
- Specified by:
pop
in interfaceITaskQueue<T,T>
-
push
public boolean push(T p_212828_1_)
- Specified by:
push
in interfaceITaskQueue<T,T>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceITaskQueue<T,T>
-
-