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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected ThreadbooleanpollTask()protected booleanprotected booleanprotected RunnablewrapRunnable(Runnable p_8506_) Methods inherited from class net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, isSameThread, managedBlock, name, profiledMetrics, runAllTasks, submit, submit, submitAsync, tell, waitForTasksMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.thread.ProcessorHandle
ask, askEither, close
-
Constructor Details
-
MainThreadExecutor
MainThreadExecutor(Level p_8494_)
-
-
Method Details
-
wrapRunnable
- Specified by:
wrapRunnablein classBlockableEventLoop<Runnable>
-
shouldRun
- Specified by:
shouldRunin classBlockableEventLoop<Runnable>
-
scheduleExecutables
protected boolean scheduleExecutables()- Overrides:
scheduleExecutablesin classBlockableEventLoop<Runnable>
-
getRunningThread
- Specified by:
getRunningThreadin classBlockableEventLoop<Runnable>
-
doRunTask
- Overrides:
doRunTaskin classBlockableEventLoop<Runnable>
-
pollTask
public boolean pollTask()- Overrides:
pollTaskin classBlockableEventLoop<Runnable>
-