2021-02-13 08:04:32 -05:00
|
|
|
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
|
2021-04-03 10:02:25 -04:00
|
|
|
COMMENT @apiNote Vanilla uses this for debugging purpose on paletted container and
|
|
|
|
COMMENT chunk holder's asynchronous access checks.
|
2021-02-13 08:04:32 -05:00
|
|
|
FIELD field_28810 contents Ljava/util/concurrent/atomic/AtomicReferenceArray;
|
|
|
|
FIELD field_28811 size Ljava/util/concurrent/atomic/AtomicInteger;
|
2021-04-03 10:02:25 -04:00
|
|
|
METHOD <init> (I)V
|
|
|
|
ARG 1 maxSize
|
2021-02-13 08:04:32 -05:00
|
|
|
METHOD method_33720 toList ()Ljava/util/List;
|
|
|
|
COMMENT Builds a list of the contents of the stack.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>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 <p>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
|