Package net.minecraft.world.server
Class ServerChunkProvider.ChunkExecutor
- java.lang.Object
-
- net.minecraft.util.concurrent.ThreadTaskExecutor<java.lang.Runnable>
-
- net.minecraft.world.server.ServerChunkProvider.ChunkExecutor
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.concurrent.Executor
,ITaskExecutor<java.lang.Runnable>
- Enclosing class:
- ServerChunkProvider
final class ServerChunkProvider.ChunkExecutor extends ThreadTaskExecutor<java.lang.Runnable>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
ChunkExecutor(World p_i50985_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRunTask(java.lang.Runnable p_213166_1_)
protected java.lang.Thread
getRunningThread()
protected boolean
pollTask()
protected boolean
scheduleExecutables()
protected boolean
shouldRun(java.lang.Runnable p_212874_1_)
protected java.lang.Runnable
wrapRunnable(java.lang.Runnable p_212875_1_)
-
Methods inherited from class net.minecraft.util.concurrent.ThreadTaskExecutor
dropAllTasks, execute, executeBlocking, getPendingTasksCount, isSameThread, managedBlock, name, runAllTasks, submit, submit, submitAsync, tell, 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.concurrent.ITaskExecutor
ask, askEither, close
-
-
-
-
Constructor Detail
-
ChunkExecutor
private ChunkExecutor(World p_i50985_2_)
-
-
Method Detail
-
wrapRunnable
protected java.lang.Runnable wrapRunnable(java.lang.Runnable p_212875_1_)
- Specified by:
wrapRunnable
in classThreadTaskExecutor<java.lang.Runnable>
-
shouldRun
protected boolean shouldRun(java.lang.Runnable p_212874_1_)
- Specified by:
shouldRun
in classThreadTaskExecutor<java.lang.Runnable>
-
scheduleExecutables
protected boolean scheduleExecutables()
- Overrides:
scheduleExecutables
in classThreadTaskExecutor<java.lang.Runnable>
-
getRunningThread
protected java.lang.Thread getRunningThread()
- Specified by:
getRunningThread
in classThreadTaskExecutor<java.lang.Runnable>
-
doRunTask
protected void doRunTask(java.lang.Runnable p_213166_1_)
- Overrides:
doRunTask
in classThreadTaskExecutor<java.lang.Runnable>
-
pollTask
protected boolean pollTask()
- Overrides:
pollTask
in classThreadTaskExecutor<java.lang.Runnable>
-
-