Package net.minecraft.util.thread
Class PrioritizedConsecutiveExecutor
java.lang.Object
net.minecraft.util.thread.ConsecutiveExecutor<TaskQueue.PrioritizedTask>
net.minecraft.util.thread.PrioritizedConsecutiveExecutor
- All Implemented Interfaces:
AutoCloseable
,Runnable
,SampleableExecutor
,TaskExecutor<TaskQueue.PrioritizedTask>
- Mappings:
Namespace Name named net/minecraft/util/thread/PrioritizedConsecutiveExecutor
intermediary net/minecraft/class_10177
official bsa
-
Constructor Summary
ConstructorDescriptionPrioritizedConsecutiveExecutor
(int priorityCount, Executor executor, String name) -
Method Summary
Modifier and TypeMethodDescriptioncreateTask
(Runnable runnable) <Source> CompletableFuture
<Source> executeAsync
(int priority, Consumer<CompletableFuture<Source>> future) Methods inherited from class net.minecraft.util.thread.ConsecutiveExecutor
close, createSamplers, getName, hasQueuedTasks, queueSize, run, runAll, send, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.thread.TaskExecutor
executeAsync
-
Constructor Details
-
PrioritizedConsecutiveExecutor
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;<init>(ILjava/util/concurrent/Executor;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_10177;<init>(ILjava/util/concurrent/Executor;Ljava/lang/String;)V
official <init>
Lbsa;<init>(ILjava/util/concurrent/Executor;Ljava/lang/String;)V
-
-
Method Details
-
createTask
- Mappings:
Namespace Name Mixin selector named createTask
Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;createTask(Ljava/lang/Runnable;)Lnet/minecraft/util/thread/TaskQueue$PrioritizedTask;
intermediary method_63601
Lnet/minecraft/class_10177;method_63601(Ljava/lang/Runnable;)Lnet/minecraft/class_3847$class_3907;
official b
Lbsa;b(Ljava/lang/Runnable;)Lbsc$c;
-
executeAsync
public <Source> CompletableFuture<Source> executeAsync(int priority, Consumer<CompletableFuture<Source>> future) - Mappings:
Namespace Name Mixin selector named executeAsync
Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;executeAsync(ILjava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;
intermediary method_63599
Lnet/minecraft/class_10177;method_63599(ILjava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;
official a
Lbsa;a(ILjava/util/function/Consumer;)Ljava/util/concurrent/CompletableFuture;
-