Package net.minecraft.util
Class PendingTaskRunner
java.lang.Object
net.minecraft.util.PendingTaskRunner
A runner for tasks that can hold one pending task.
To queue a task for running, call queue(net.minecraft.util.PendingTaskRunner.FutureRunnable)
, and to run the task,
call runPending()
.
- Mappings:
Namespace Name official rh
intermediary net/minecraft/class_7493
named net/minecraft/util/PendingTaskRunner
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate @Nullable CompletableFuture<?>
private final AtomicReference<PendingTaskRunner.FutureRunnable>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Runs the pending task, if any, and marks the runner as not running.private void
-
Field Details
-
reference
- Mappings:
Namespace Name Mixin selector official a
Lrh;a:Ljava/util/concurrent/atomic/AtomicReference;
intermediary field_39442
Lnet/minecraft/class_7493;field_39442:Ljava/util/concurrent/atomic/AtomicReference;
named reference
Lnet/minecraft/util/PendingTaskRunner;reference:Ljava/util/concurrent/atomic/AtomicReference;
-
future
- Mappings:
Namespace Name Mixin selector official b
Lrh;b:Ljava/util/concurrent/CompletableFuture;
intermediary field_39443
Lnet/minecraft/class_7493;field_39443:Ljava/util/concurrent/CompletableFuture;
named future
Lnet/minecraft/util/PendingTaskRunner;future:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
PendingTaskRunner
public PendingTaskRunner()
-
-
Method Details
-
runPending
public void runPending()Runs the pending task, if any, and marks the runner as not running.- Mappings:
Namespace Name Mixin selector official a
Lrh;a()V
intermediary method_44122
Lnet/minecraft/class_7493;method_44122()V
named runPending
Lnet/minecraft/util/PendingTaskRunner;runPending()V
-
runPendingInternal
private void runPendingInternal()- Mappings:
Namespace Name Mixin selector official b
Lrh;b()V
intermediary method_44307
Lnet/minecraft/class_7493;method_44307()V
named runPendingInternal
Lnet/minecraft/util/PendingTaskRunner;runPendingInternal()V
-
queue
- Mappings:
Namespace Name Mixin selector official a
Lrh;a(Lrh$a;)V
intermediary method_44306
Lnet/minecraft/class_7493;method_44306(Lnet/minecraft/class_7493$class_7518;)V
named queue
Lnet/minecraft/util/PendingTaskRunner;queue(Lnet/minecraft/util/PendingTaskRunner$FutureRunnable;)V
-