Package net.minecraft.util.thread
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
,MessageListener<R>
- Direct Known Subclasses:
MinecraftClient
,MinecraftServer
public abstract class ReentrantThreadExecutor<R extends Runnable> extends ThreadExecutor<R>
- Mappings:
Namespace Name official apb
intermediary net/minecraft/class_4093
named net/minecraft/util/thread/ReentrantThreadExecutor
-
Field Summary
Fields Modifier and Type Field Description private int
runningTasks
-
Constructor Summary
Constructors Constructor Description ReentrantThreadExecutor(String name)
-
Method Summary
Modifier and Type Method Description protected void
executeTask(R task)
protected boolean
hasRunningTasks()
protected boolean
shouldExecuteAsync()
Methods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, canExecute, createTask, execute, getName, getTaskCount, getThread, isOnThread, runTask, runTasks, runTasks, send, submit, submit, submitAndJoin, waitForTasks
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.util.thread.MessageListener
ask, close, method_27918
-
Field Details
-
runningTasks
private int runningTasks- Mappings:
Namespace Name Mixin selector official b
Lapb;b:I
intermediary field_18320
Lnet/minecraft/class_4093;field_18320:I
named runningTasks
Lnet/minecraft/util/thread/ReentrantThreadExecutor;runningTasks:I
-
-
Constructor Details
-
ReentrantThreadExecutor
- Mappings:
Namespace Name Mixin selector official <init>
Laox;<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
-
-
Method Details
-
shouldExecuteAsync
protected boolean shouldExecuteAsync()- Overrides:
shouldExecuteAsync
in classThreadExecutor<R extends Runnable>
- Mappings:
Namespace Name Mixin selector official at
Laox;at()Z
intermediary method_5384
Lnet/minecraft/class_1255;method_5384()Z
named shouldExecuteAsync
Lnet/minecraft/util/thread/ThreadExecutor;shouldExecuteAsync()Z
-
hasRunningTasks
protected boolean hasRunningTasks()- Mappings:
Namespace Name Mixin selector official bn
Lapb;bn()Z
intermediary method_18860
Lnet/minecraft/class_4093;method_18860()Z
named hasRunningTasks
Lnet/minecraft/util/thread/ReentrantThreadExecutor;hasRunningTasks()Z
-
executeTask
- Overrides:
executeTask
in classThreadExecutor<R extends Runnable>
- Mappings:
Namespace Name Mixin selector official c
Laox;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
-