Package net.minecraft.world.server
Class ServerChunkProvider.ChunkExecutor
java.lang.Object
net.minecraft.util.concurrent.ThreadTaskExecutor<Runnable>
net.minecraft.world.server.ServerChunkProvider.ChunkExecutor
- All Implemented Interfaces:
AutoCloseable
,Executor
,ITaskExecutor<Runnable>
- Enclosing class:
- ServerChunkProvider
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected Thread
protected boolean
pollTask()
protected boolean
protected boolean
protected Runnable
wrapRunnable
(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 Details
-
ChunkExecutor
-
-
Method Details
-
wrapRunnable
- Specified by:
wrapRunnable
in classThreadTaskExecutor<Runnable>
-
shouldRun
- Specified by:
shouldRun
in classThreadTaskExecutor<Runnable>
-
scheduleExecutables
protected boolean scheduleExecutables()- Overrides:
scheduleExecutables
in classThreadTaskExecutor<Runnable>
-
getRunningThread
- Specified by:
getRunningThread
in classThreadTaskExecutor<Runnable>
-
doRunTask
- Overrides:
doRunTask
in classThreadTaskExecutor<Runnable>
-
pollTask
protected boolean pollTask()- Overrides:
pollTask
in classThreadTaskExecutor<Runnable>
-