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>

public class PrioritizedConsecutiveExecutor extends ConsecutiveExecutor<TaskQueue.PrioritizedTask>
Mappings:
Namespace Name
named net/minecraft/util/thread/PrioritizedConsecutiveExecutor
intermediary net/minecraft/class_10177
official bsa
  • Constructor Details

    • PrioritizedConsecutiveExecutor

      public PrioritizedConsecutiveExecutor(int priorityCount, Executor executor, String name)
      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

      public TaskQueue.PrioritizedTask createTask(Runnable runnable)
      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;