类 ServerChunkCache.MainThreadExecutor
java.lang.Object
net.minecraft.util.thread.BlockableEventLoop<Runnable>
net.minecraft.server.level.ServerChunkCache.MainThreadExecutor
- 所有已实现的接口:
AutoCloseable
,Executor
,ProfilerMeasured
,TaskScheduler<Runnable>
- 封闭类:
ServerChunkCache
-
字段概要
从类继承的字段 net.minecraft.util.thread.BlockableEventLoop
BLOCK_TIME_NANOS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
protected Thread
void
managedBlock
(BooleanSupplier p_347606_) boolean
pollTask()
protected boolean
protected boolean
wrapRunnable
(Runnable p_8506_) 从类继承的方法 net.minecraft.util.thread.BlockableEventLoop
dropAllTasks, execute, executeBlocking, executeIfPossible, getPendingTasksCount, isNonRecoverable, isSameThread, name, profiledMetrics, runAllTasks, schedule, submit, submit, submitAsync, waitForTasks
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.util.thread.TaskScheduler
close, scheduleWithResult
-
构造器详细资料
-
MainThreadExecutor
MainThreadExecutor(Level p_8494_)
-
-
方法详细资料
-
managedBlock
- 覆盖:
managedBlock
在类中BlockableEventLoop<Runnable>
-
wrapRunnable
-
shouldRun
- 指定者:
shouldRun
在类中BlockableEventLoop<Runnable>
-
scheduleExecutables
protected boolean scheduleExecutables() -
getRunningThread
- 指定者:
getRunningThread
在类中BlockableEventLoop<Runnable>
-
doRunTask
- 覆盖:
doRunTask
在类中BlockableEventLoop<Runnable>
-
pollTask
public boolean pollTask()- 覆盖:
pollTask
在类中BlockableEventLoop<Runnable>
-