Class ReentrantThreadExecutor<R extends Runnable>

java.lang.Object
net.minecraft.util.thread.ThreadExecutor<R>
net.minecraft.util.thread.ReentrantThreadExecutor<R>
All Implemented Interfaces:
AutoCloseable, Executor, SampleableExecutor, TaskExecutor<R>
Direct Known Subclasses:
MinecraftClient, MinecraftServer

public abstract class ReentrantThreadExecutor<R extends Runnable> extends ThreadExecutor<R>
Mappings:
Namespace Name
named net/minecraft/util/thread/ReentrantThreadExecutor
intermediary net/minecraft/class_4093
official bsb
  • Field Details

    • runningTasks

      private int runningTasks
      Mappings:
      Namespace Name Mixin selector
      named runningTasks Lnet/minecraft/util/thread/ReentrantThreadExecutor;runningTasks:I
      intermediary field_18320 Lnet/minecraft/class_4093;field_18320:I
      official b Lbsb;b:I
  • Constructor Details

    • ReentrantThreadExecutor

      public ReentrantThreadExecutor(String name)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/util/thread/ThreadExecutor;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_1255;<init>(Ljava/lang/String;)V
      official <init> Lbrx;<init>(Ljava/lang/String;)V
  • Method Details

    • shouldExecuteAsync

      public boolean shouldExecuteAsync()
      Overrides:
      shouldExecuteAsync in class ThreadExecutor<R extends Runnable>
      Mappings:
      Namespace Name Mixin selector
      named shouldExecuteAsync Lnet/minecraft/util/thread/ThreadExecutor;shouldExecuteAsync()Z
      intermediary method_5384 Lnet/minecraft/class_1255;method_5384()Z
      official ax Lbrx;ax()Z
    • hasRunningTasks

      protected boolean hasRunningTasks()
      Mappings:
      Namespace Name Mixin selector
      named hasRunningTasks Lnet/minecraft/util/thread/ReentrantThreadExecutor;hasRunningTasks()Z
      intermediary method_18860 Lnet/minecraft/class_4093;method_18860()Z
      official bB Lbsb;bB()Z
    • executeTask

      public void executeTask(R task)
      Overrides:
      executeTask in class ThreadExecutor<R extends Runnable>
      Mappings:
      Namespace Name Mixin selector
      named executeTask Lnet/minecraft/util/thread/ThreadExecutor;executeTask(Ljava/lang/Runnable;)V
      intermediary method_18859 Lnet/minecraft/class_1255;method_18859(Ljava/lang/Runnable;)V
      official d Lbrx;d(Ljava/lang/Runnable;)V