CLASS net/minecraft/class_5831 net/minecraft/util/thread/AtomicStack COMMENT A fixed-size atomic stack, useful for tracking multithreaded access to COMMENT an object. When the stack is full on addition, it overrides the earliest COMMENT content in the stack. COMMENT COMMENT @apiNote Vanilla uses this for debugging purpose on paletted container and COMMENT chunk holder's asynchronous access checks. FIELD field_28810 contents Ljava/util/concurrent/atomic/AtomicReferenceArray; FIELD field_28811 size Ljava/util/concurrent/atomic/AtomicInteger; METHOD (I)V ARG 1 maxSize METHOD method_33720 toList ()Ljava/util/List; COMMENT Builds a list of the contents of the stack. COMMENT COMMENT

The more recently pushed elements will appear earlier in the returned COMMENT list. The returned list is immutable and its size won't exceed this stack's COMMENT size. COMMENT COMMENT @return a list of contents METHOD method_33721 push (Ljava/lang/Object;)V COMMENT Adds a value to this stack. COMMENT COMMENT

If the stack is already at full capacity, the earliest pushed item in COMMENT the stack is discarded. ARG 1 value COMMENT the value to add