Class ServerChunkCache.MainThreadExecutor
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<Runnable>
net.minecraft.server.level.ServerChunkCache.MainThreadExecutor
- All Implemented Interfaces:
AutoCloseable, Executor, ProfilerMeasured, TaskScheduler<Runnable>
- Enclosing class:
ServerChunkCache
-
Field Summary
Fields inherited from class BlockableEventLoop
BLOCK_TIME_NANOS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected Threadprotected booleanpollTask()protected booleanprotected booleanwrapRunnable(Runnable runnable) Methods inherited from class BlockableEventLoop
delayCrash, dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, hasDelayedCrash, isNonRecoverable, isSameThread, managedBlock, name, profiledMetrics, relayDelayCrash, runAllTasks, schedule, shouldRunAllTasks, submit, submit, submitAsync, waitForTasksMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TaskScheduler
close, scheduleWithResult
-
Constructor Details
-
MainThreadExecutor
-
-
Method Details
-
wrapRunnable
-
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
protected boolean pollTask()- Overrides:
pollTaskin classBlockableEventLoop<Runnable>
-