Package net.minecraft.server.world
Class ServerChunkManager.MainThreadExecutor
java.lang.Object
net.minecraft.util.thread.ThreadExecutor<Runnable>
net.minecraft.server.world.ServerChunkManager.MainThreadExecutor
- All Implemented Interfaces:
AutoCloseable
,Executor
,MessageListener<Runnable>
- Enclosing class:
- ServerChunkManager
final class ServerChunkManager.MainThreadExecutor extends ThreadExecutor<Runnable>
- Mappings:
Namespace Name official aat$a
intermediary net/minecraft/class_3215$class_4212
named net/minecraft/server/world/ServerChunkManager$MainThreadExecutor
-
Constructor Summary
Constructors Modifier Constructor Description private
MainThreadExecutor(World world)
-
Method Summary
Modifier and Type Method Description protected boolean
canExecute(Runnable task)
protected Runnable
createTask(Runnable runnable)
protected void
executeTask(Runnable task)
protected Thread
getThread()
protected boolean
runTask()
protected boolean
shouldExecuteAsync()
Methods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, execute, getName, getTaskCount, isOnThread, 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
-
Constructor Details
-
MainThreadExecutor
-
-
Method Details
-
createTask
- Specified by:
createTask
in classThreadExecutor<Runnable>
- Mappings:
Namespace Name Mixin selector official e
Laox;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
- Specified by:
canExecute
in classThreadExecutor<Runnable>
- Mappings:
Namespace Name Mixin selector official d
Laox;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
-
shouldExecuteAsync
protected boolean shouldExecuteAsync()- Overrides:
shouldExecuteAsync
in classThreadExecutor<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
-
getThread
- Specified by:
getThread
in classThreadExecutor<Runnable>
- Mappings:
Namespace Name Mixin selector official au
Laox;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;
-
executeTask
- Overrides:
executeTask
in classThreadExecutor<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
-
runTask
protected boolean runTask()- Overrides:
runTask
in classThreadExecutor<Runnable>
- Mappings:
Namespace Name Mixin selector official y
Laox;y()Z
intermediary method_16075
Lnet/minecraft/class_1255;method_16075()Z
named runTask
Lnet/minecraft/util/thread/ThreadExecutor;runTask()Z
-