Package net.minecraft.util.thread
Class AtomicStack<T>
java.lang.Object
net.minecraft.util.thread.AtomicStack<T>
A fixed-size atomic stack, useful for tracking multithreaded access to
 an object. When the stack is full on addition, it overrides the earliest
 content in the stack.
- API Note:
 - Vanilla uses this for debugging purpose on paletted container and chunk holder's asynchronous access checks.
 - Mappings:
 Namespace Name named net/minecraft/util/thread/AtomicStackintermediary net/minecraft/class_5831official aza
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AtomicReferenceArray<T> private final AtomicInteger - 
Constructor Summary
Constructors - 
Method Summary
 
- 
Field Details
- 
contents
- Mappings:
 Namespace Name Mixin selector named contentsLnet/minecraft/util/thread/AtomicStack;contents:Ljava/util/concurrent/atomic/AtomicReferenceArray;intermediary field_28810Lnet/minecraft/class_5831;field_28810:Ljava/util/concurrent/atomic/AtomicReferenceArray;official aLaza;a:Ljava/util/concurrent/atomic/AtomicReferenceArray;
 - 
size
- Mappings:
 Namespace Name Mixin selector named sizeLnet/minecraft/util/thread/AtomicStack;size:Ljava/util/concurrent/atomic/AtomicInteger;intermediary field_28811Lnet/minecraft/class_5831;field_28811:Ljava/util/concurrent/atomic/AtomicInteger;official bLaza;b:Ljava/util/concurrent/atomic/AtomicInteger;
 
 - 
 - 
Constructor Details
- 
AtomicStack
public AtomicStack(int maxSize) - Mappings:
 Namespace Name Mixin selector named <init>Lnet/minecraft/util/thread/AtomicStack;<init>(I)Vintermediary <init>Lnet/minecraft/class_5831;<init>(I)Vofficial <init>Laza;<init>(I)V
 
 - 
 - 
Method Details
- 
push
Adds a value to this stack.If the stack is already at full capacity, the earliest pushed item in the stack is discarded.
- Parameters:
 value- the value to add- Mappings:
 Namespace Name Mixin selector named pushLnet/minecraft/util/thread/AtomicStack;push(Ljava/lang/Object;)Vintermediary method_33721Lnet/minecraft/class_5831;method_33721(Ljava/lang/Object;)Vofficial aLaza;a(Ljava/lang/Object;)V
 - 
toList
Builds a list of the contents of the stack.The more recently pushed elements will appear earlier in the returned list. The returned list is immutable and its size won't exceed this stack's size.
- Returns:
 - a list of contents
 - Mappings:
 Namespace Name Mixin selector named toListLnet/minecraft/util/thread/AtomicStack;toList()Ljava/util/List;intermediary method_33720Lnet/minecraft/class_5831;method_33720()Ljava/util/List;official aLaza;a()Ljava/util/List;
 
 -