Package net.minecraft.util.thread
Class TaskExecutor<T>
java.lang.Object
net.minecraft.util.thread.TaskExecutor<T>
- All Implemented Interfaces:
AutoCloseable
,Runnable
,MessageListener<T>
,SampleableExecutor
public class TaskExecutor<T>
extends Object
implements SampleableExecutor, MessageListener<T>, AutoCloseable, Runnable
- Mappings:
Namespace Name named net/minecraft/util/thread/TaskExecutor
intermediary net/minecraft/class_3846
official bpj
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Executor
private static final int
private static final int
private static final Logger
private final String
private final AtomicInteger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
awaitAll()
void
close()
static TaskExecutor
<Runnable> private void
execute()
getName()
int
private boolean
boolean
private boolean
private void
pause()
void
run()
private boolean
runNext()
private int
runWhile
(Int2BooleanFunction condition) void
toString()
private boolean
unpause()
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.MessageListener
ask, askFallible
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/util/thread/TaskExecutor;LOGGER:Lorg/slf4j/Logger;
intermediary field_17040
Lnet/minecraft/class_3846;field_17040:Lorg/slf4j/Logger;
official a
Lbpj;a:Lorg/slf4j/Logger;
-
field_29940
private static final int field_29940- See Also:
- Mappings:
Namespace Name Mixin selector named field_29940
Lnet/minecraft/util/thread/TaskExecutor;field_29940:I
intermediary field_29940
Lnet/minecraft/class_3846;field_29940:I
official b
Lbpj;b:I
-
field_29941
private static final int field_29941- See Also:
- Mappings:
Namespace Name Mixin selector named field_29941
Lnet/minecraft/util/thread/TaskExecutor;field_29941:I
intermediary field_29941
Lnet/minecraft/class_3846;field_29941:I
official c
Lbpj;c:I
-
stateFlags
- Mappings:
Namespace Name Mixin selector named stateFlags
Lnet/minecraft/util/thread/TaskExecutor;stateFlags:Ljava/util/concurrent/atomic/AtomicInteger;
intermediary field_17041
Lnet/minecraft/class_3846;field_17041:Ljava/util/concurrent/atomic/AtomicInteger;
official d
Lbpj;d:Ljava/util/concurrent/atomic/AtomicInteger;
-
queue
- Mappings:
Namespace Name Mixin selector named queue
Lnet/minecraft/util/thread/TaskExecutor;queue:Lnet/minecraft/util/thread/TaskQueue;
intermediary field_17039
Lnet/minecraft/class_3846;field_17039:Lnet/minecraft/class_3847;
official e
Lbpj;e:Lbpl;
-
executor
- Mappings:
Namespace Name Mixin selector named executor
Lnet/minecraft/util/thread/TaskExecutor;executor:Ljava/util/concurrent/Executor;
intermediary field_17042
Lnet/minecraft/class_3846;field_17042:Ljava/util/concurrent/Executor;
official f
Lbpj;f:Ljava/util/concurrent/Executor;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/util/thread/TaskExecutor;name:Ljava/lang/String;
intermediary field_17043
Lnet/minecraft/class_3846;field_17043:Ljava/lang/String;
official g
Lbpj;g:Ljava/lang/String;
-
-
Constructor Details
-
TaskExecutor
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/util/thread/TaskExecutor;<init>(Lnet/minecraft/util/thread/TaskQueue;Ljava/util/concurrent/Executor;Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_3846;<init>(Lnet/minecraft/class_3847;Ljava/util/concurrent/Executor;Ljava/lang/String;)V
official <init>
Lbpj;<init>(Lbpl;Ljava/util/concurrent/Executor;Ljava/lang/String;)V
-
-
Method Details
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/util/thread/TaskExecutor;create(Ljava/util/concurrent/Executor;Ljava/lang/String;)Lnet/minecraft/util/thread/TaskExecutor;
intermediary method_16902
Lnet/minecraft/class_3846;method_16902(Ljava/util/concurrent/Executor;Ljava/lang/String;)Lnet/minecraft/class_3846;
official a
Lbpj;a(Ljava/util/concurrent/Executor;Ljava/lang/String;)Lbpj;
-
unpause
private boolean unpause()- Mappings:
Namespace Name Mixin selector named unpause
Lnet/minecraft/util/thread/TaskExecutor;unpause()Z
intermediary method_16903
Lnet/minecraft/class_3846;method_16903()Z
official d
Lbpj;d()Z
-
pause
private void pause()- Mappings:
Namespace Name Mixin selector named pause
Lnet/minecraft/util/thread/TaskExecutor;pause()V
intermediary method_16904
Lnet/minecraft/class_3846;method_16904()V
official e
Lbpj;e()V
-
hasMessages
private boolean hasMessages()- Mappings:
Namespace Name Mixin selector named hasMessages
Lnet/minecraft/util/thread/TaskExecutor;hasMessages()Z
intermediary method_16905
Lnet/minecraft/class_3846;method_16905()Z
official f
Lbpj;f()Z
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceMessageListener<T>
-
isUnpaused
private boolean isUnpaused()- Mappings:
Namespace Name Mixin selector named isUnpaused
Lnet/minecraft/util/thread/TaskExecutor;isUnpaused()Z
intermediary method_16906
Lnet/minecraft/class_3846;method_16906()Z
official g
Lbpj;g()Z
-
runNext
private boolean runNext()- Mappings:
Namespace Name Mixin selector named runNext
Lnet/minecraft/util/thread/TaskExecutor;runNext()Z
intermediary method_16907
Lnet/minecraft/class_3846;method_16907()Z
official h
Lbpj;h()Z
-
run
public void run() -
awaitAll
public void awaitAll()- Mappings:
Namespace Name Mixin selector named awaitAll
Lnet/minecraft/util/thread/TaskExecutor;awaitAll()V
intermediary method_37477
Lnet/minecraft/class_3846;method_37477()V
official a
Lbpj;a()V
-
send
- Specified by:
send
in interfaceMessageListener<T>
- Mappings:
Namespace Name Mixin selector named send
Lnet/minecraft/util/thread/MessageListener;send(Ljava/lang/Object;)V
intermediary method_16901
Lnet/minecraft/class_3906;method_16901(Ljava/lang/Object;)V
official a
Lbpi;a(Ljava/lang/Object;)V
-
execute
private void execute()- Mappings:
Namespace Name Mixin selector named execute
Lnet/minecraft/util/thread/TaskExecutor;execute()V
intermediary method_16908
Lnet/minecraft/class_3846;method_16908()V
official i
Lbpj;i()V
-
runWhile
- Parameters:
condition
- checks whether to run another task given the run task count- Mappings:
Namespace Name Mixin selector named runWhile
Lnet/minecraft/util/thread/TaskExecutor;runWhile(Lit/unimi/dsi/fastutil/ints/Int2BooleanFunction;)I
intermediary method_16900
Lnet/minecraft/class_3846;method_16900(Lit/unimi/dsi/fastutil/ints/Int2BooleanFunction;)I
official a
Lbpj;a(Lit/unimi/dsi/fastutil/ints/Int2BooleanFunction;)I
-
getQueueSize
public int getQueueSize()- Mappings:
Namespace Name Mixin selector named getQueueSize
Lnet/minecraft/util/thread/TaskExecutor;getQueueSize()I
intermediary method_34996
Lnet/minecraft/class_3846;method_34996()I
official b
Lbpj;b()I
-
hasQueuedTasks
public boolean hasQueuedTasks()- Mappings:
Namespace Name Mixin selector named hasQueuedTasks
Lnet/minecraft/util/thread/TaskExecutor;hasQueuedTasks()Z
intermediary method_40001
Lnet/minecraft/class_3846;method_40001()Z
official c
Lbpj;c()Z
-
toString
-
getName
- Specified by:
getName
in interfaceMessageListener<T>
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/util/thread/MessageListener;getName()Ljava/lang/String;
intermediary method_16898
Lnet/minecraft/class_3906;method_16898()Ljava/lang/String;
official bz
Lbpi;bz()Ljava/lang/String;
-
createSamplers
- Specified by:
createSamplers
in interfaceSampleableExecutor
- Mappings:
Namespace Name Mixin selector named createSamplers
Lnet/minecraft/util/thread/SampleableExecutor;createSamplers()Ljava/util/List;
intermediary method_34705
Lnet/minecraft/class_5952;method_34705()Ljava/util/List;
official bw
Lboo;bw()Ljava/util/List;
-