类 ThreadExecutor<R extends Runnable>

    • 字段详细资料

      • LOGGER

        private static final Logger LOGGER
        Mappings:
        Namespace Name Mixin selector
        official c Laqc;c:Lorg/apache/logging/log4j/Logger;
        intermediary field_5751 Lnet/minecraft/class_1255;field_5751:Lorg/apache/logging/log4j/Logger;
        named LOGGER Lnet/minecraft/util/thread/ThreadExecutor;LOGGER:Lorg/apache/logging/log4j/Logger;
      • name

        private final String name
        Mappings:
        Namespace Name Mixin selector
        official b Laqc;b:Ljava/lang/String;
        intermediary field_18318 Lnet/minecraft/class_1255;field_18318:Ljava/lang/String;
        named name Lnet/minecraft/util/thread/ThreadExecutor;name:Ljava/lang/String;
      • tasks

        private final Queue<R extends Runnable> tasks
        Mappings:
        Namespace Name Mixin selector
        official d Laqc;d:Ljava/util/Queue;
        intermediary field_5750 Lnet/minecraft/class_1255;field_5750:Ljava/util/Queue;
        named tasks Lnet/minecraft/util/thread/ThreadExecutor;tasks:Ljava/util/Queue;
      • executionsInProgress

        private int executionsInProgress
        Mappings:
        Namespace Name Mixin selector
        official e Laqc;e:I
        intermediary field_18319 Lnet/minecraft/class_1255;field_18319:I
        named executionsInProgress Lnet/minecraft/util/thread/ThreadExecutor;executionsInProgress:I
    • 构造器详细资料

      • ThreadExecutor

        protected ThreadExecutor​(String name)
        Mappings:
        Namespace Name Mixin selector
        official <init> Laqc;<init>(Ljava/lang/String;)V
        intermediary <init> Lnet/minecraft/class_1255;<init>(Ljava/lang/String;)V
        named <init> Lnet/minecraft/util/thread/ThreadExecutor;<init>(Ljava/lang/String;)V
    • 方法详细资料

      • createTask

        protected abstract R createTask​(Runnable runnable)
        Mappings:
        Namespace Name Mixin selector
        official e Laqc;e(Ljava/lang/Runnable;)Ljava/lang/Runnable;
        intermediary method_16211 Lnet/minecraft/class_1255;method_16211(Ljava/lang/Runnable;)Ljava/lang/Runnable;
        named createTask Lnet/minecraft/util/thread/ThreadExecutor;createTask(Ljava/lang/Runnable;)Ljava/lang/Runnable;
      • canExecute

        protected abstract boolean canExecute​(R task)
        Mappings:
        Namespace Name Mixin selector
        official d Laqc;d(Ljava/lang/Runnable;)Z
        intermediary method_18856 Lnet/minecraft/class_1255;method_18856(Ljava/lang/Runnable;)Z
        named canExecute Lnet/minecraft/util/thread/ThreadExecutor;canExecute(Ljava/lang/Runnable;)Z
      • isOnThread

        public boolean isOnThread()
        Mappings:
        Namespace Name Mixin selector
        official bj Laqc;bj()Z
        intermediary method_18854 Lnet/minecraft/class_1255;method_18854()Z
        named isOnThread Lnet/minecraft/util/thread/ThreadExecutor;isOnThread()Z
      • getThread

        protected abstract Thread getThread()
        Mappings:
        Namespace Name Mixin selector
        official au Laqc;au()Ljava/lang/Thread;
        intermediary method_3777 Lnet/minecraft/class_1255;method_3777()Ljava/lang/Thread;
        named getThread Lnet/minecraft/util/thread/ThreadExecutor;getThread()Ljava/lang/Thread;
      • shouldExecuteAsync

        protected boolean shouldExecuteAsync()
        Mappings:
        Namespace Name Mixin selector
        official at Laqc;at()Z
        intermediary method_5384 Lnet/minecraft/class_1255;method_5384()Z
        named shouldExecuteAsync Lnet/minecraft/util/thread/ThreadExecutor;shouldExecuteAsync()Z
      • getTaskCount

        public int getTaskCount()
        Mappings:
        Namespace Name Mixin selector
        official bk Laqc;bk()I
        intermediary method_21684 Lnet/minecraft/class_1255;method_21684()I
        named getTaskCount Lnet/minecraft/util/thread/ThreadExecutor;getTaskCount()I
      • getName

        public String getName()
        指定者:
        getName 在接口中 MessageListener<R extends Runnable>
        Mappings:
        Namespace Name Mixin selector
        official bl Laqe;bl()Ljava/lang/String;
        intermediary method_16898 Lnet/minecraft/class_3906;method_16898()Ljava/lang/String;
        named getName Lnet/minecraft/util/thread/MessageListener;getName()Ljava/lang/String;
      • submit

        public <V> CompletableFuture<V> submit​(Supplier<V> task)
        Mappings:
        Namespace Name Mixin selector
        official a Laqc;a(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_5385 Lnet/minecraft/class_1255;method_5385(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
        named submit Lnet/minecraft/util/thread/ThreadExecutor;submit(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
      • submitAsync

        private CompletableFuture<Void> submitAsync​(Runnable runnable)
        Mappings:
        Namespace Name Mixin selector
        official a Laqc;a(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_5382 Lnet/minecraft/class_1255;method_5382(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture;
        named submitAsync Lnet/minecraft/util/thread/ThreadExecutor;submitAsync(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture;
      • submit

        public CompletableFuture<Void> submit​(Runnable task)
        Mappings:
        Namespace Name Mixin selector
        official f Laqc;f(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture;
        intermediary method_20493 Lnet/minecraft/class_1255;method_20493(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture;
        named submit Lnet/minecraft/util/thread/ThreadExecutor;submit(Ljava/lang/Runnable;)Ljava/util/concurrent/CompletableFuture;
      • submitAndJoin

        public void submitAndJoin​(Runnable runnable)
        Mappings:
        Namespace Name Mixin selector
        official g Laqc;g(Ljava/lang/Runnable;)V
        intermediary method_19537 Lnet/minecraft/class_1255;method_19537(Ljava/lang/Runnable;)V
        named submitAndJoin Lnet/minecraft/util/thread/ThreadExecutor;submitAndJoin(Ljava/lang/Runnable;)V
      • send

        public void send​(R r)
        指定者:
        send 在接口中 MessageListener<R extends Runnable>
        Mappings:
        Namespace Name Mixin selector
        official h Laqc;h(Ljava/lang/Runnable;)V
        intermediary method_18858 Lnet/minecraft/class_1255;method_18858(Ljava/lang/Runnable;)V
        named send Lnet/minecraft/util/thread/ThreadExecutor;send(Ljava/lang/Runnable;)V
      • execute

        public void execute​(Runnable runnable)
        指定者:
        execute 在接口中 Executor
        Mappings:
        Namespace Name Mixin selector
        official execute Laqc;execute(Ljava/lang/Runnable;)V
        intermediary execute Lnet/minecraft/class_1255;execute(Ljava/lang/Runnable;)V
        named execute Lnet/minecraft/util/thread/ThreadExecutor;execute(Ljava/lang/Runnable;)V
      • cancelTasks

        protected void cancelTasks()
        Mappings:
        Namespace Name Mixin selector
        official bm Laqc;bm()V
        intermediary method_18855 Lnet/minecraft/class_1255;method_18855()V
        named cancelTasks Lnet/minecraft/util/thread/ThreadExecutor;cancelTasks()V
      • runTasks

        protected void runTasks()
        Mappings:
        Namespace Name Mixin selector
        official bn Laqc;bn()V
        intermediary method_5383 Lnet/minecraft/class_1255;method_5383()V
        named runTasks Lnet/minecraft/util/thread/ThreadExecutor;runTasks()V
      • runTask

        protected boolean runTask()
        Mappings:
        Namespace Name Mixin selector
        official y Laqc;y()Z
        intermediary method_16075 Lnet/minecraft/class_1255;method_16075()Z
        named runTask Lnet/minecraft/util/thread/ThreadExecutor;runTask()Z
      • runTasks

        public void runTasks​(BooleanSupplier stopCondition)
        Mappings:
        Namespace Name Mixin selector
        official c Laqc;c(Ljava/util/function/BooleanSupplier;)V
        intermediary method_18857 Lnet/minecraft/class_1255;method_18857(Ljava/util/function/BooleanSupplier;)V
        named runTasks Lnet/minecraft/util/thread/ThreadExecutor;runTasks(Ljava/util/function/BooleanSupplier;)V
      • waitForTasks

        protected void waitForTasks()
        Mappings:
        Namespace Name Mixin selector
        official bo Laqc;bo()V
        intermediary method_20813 Lnet/minecraft/class_1255;method_20813()V
        named waitForTasks Lnet/minecraft/util/thread/ThreadExecutor;waitForTasks()V
      • executeTask

        protected void executeTask​(R task)
        Mappings:
        Namespace Name Mixin selector
        official c Laqc;c(Ljava/lang/Runnable;)V
        intermediary method_18859 Lnet/minecraft/class_1255;method_18859(Ljava/lang/Runnable;)V
        named executeTask Lnet/minecraft/util/thread/ThreadExecutor;executeTask(Ljava/lang/Runnable;)V
      • getSamplers

        public List<MetricSampler> getSamplers()
        指定者:
        getSamplers 在接口中 MetricSamplerSupplier
        Mappings:
        Namespace Name Mixin selector
        official bi Lapu;bi()Ljava/util/List;
        intermediary method_34705 Lnet/minecraft/class_5952;method_34705()Ljava/util/List;
        named getSamplers Lnet/minecraft/util/profiler/MetricSamplerSupplier;getSamplers()Ljava/util/List;