Package net.minecraft.server.level
Class ServerChunkCache.MainThreadExecutor
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<Runnable>
net.minecraft.server.level.ServerChunkCache.MainThreadExecutor
- All Implemented Interfaces:
- AutoCloseable,- Executor,- ProfilerMeasured,- ProcessorHandle<Runnable>
- Enclosing class:
- ServerChunkCache
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected ThreadbooleanpollTask()protected booleanprotected booleanprotected RunnablewrapRunnable(Runnable p_8506_) Methods inherited from class net.minecraft.util.thread.BlockableEventLoopdropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasksMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.thread.ProcessorHandleask, askEither, close
- 
Constructor Details- 
MainThreadExecutorMainThreadExecutor(Level p_8494_) 
 
- 
- 
Method Details- 
wrapRunnable- Specified by:
- wrapRunnablein class- BlockableEventLoop<Runnable>
 
- 
shouldRun- Specified by:
- shouldRunin class- BlockableEventLoop<Runnable>
 
- 
scheduleExecutablesprotected boolean scheduleExecutables()- Overrides:
- scheduleExecutablesin class- BlockableEventLoop<Runnable>
 
- 
getRunningThread- Specified by:
- getRunningThreadin class- BlockableEventLoop<Runnable>
 
- 
doRunTask- Overrides:
- doRunTaskin class- BlockableEventLoop<Runnable>
 
- 
pollTaskpublic boolean pollTask()- Overrides:
- pollTaskin class- BlockableEventLoop<Runnable>
 
 
-