net.minecraft.server.level

public class ChunkTaskDispatcher

implements ChunkHolder$LevelChangeListener, AutoCloseable

aqk
net.minecraft.server.level.ChunkTaskDispatcher
net.minecraft.class_10171
net.minecraft.server.world.ChunkTaskScheduler
net.minecraft.server.level.ChunkTaskDispatcher

Field summary

Modifier and TypeField
public static final int
a
DISPATCHER_PRIORITY_COUNT
field_54036
LEVELS
private static final org.slf4j.Logger
c
LOGGER
field_54038
LOGGER
private final ChunkTaskPriorityQueue
d
queue
field_54039
queue
private final TaskScheduler<Runnable>
e
executor
field_54040
executor
private final PriorityConsecutiveExecutor
f
dispatcher
field_54041
dispatcher
protected boolean
b
sleeping
field_54037
pollOnUpdate

Constructor summary

ModifierConstructor
public (TaskScheduler<Runnable> executor, Executor dispatchExecutor)

Method summary

Modifier and TypeMethod
public boolean
a()
hasWork()
method_63546()
shouldDelayShutdown()
public void
onLevelChange(dfp arg0, IntSupplier arg1, int arg2, IntConsumer arg3)
onLevelChange(ChunkPos arg0, IntSupplier arg1, int arg2, IntConsumer arg3)
method_17209(class_1923 arg0, IntSupplier arg1, int arg2, IntConsumer arg3)
updateLevel(ChunkPos arg0, IntSupplier arg1, int arg2, IntConsumer arg3)
public void
a(long arg0, Runnable arg1, boolean arg2)
release(long arg0, Runnable arg1, boolean arg2)
method_63549(long arg0, Runnable arg1, boolean arg2)
remove(long pos, Runnable callback, boolean removeElement)
public void
a(Runnable arg0, long arg1, IntSupplier arg2)
submit(Runnable arg0, long arg1, IntSupplier arg2)
method_63553(Runnable arg0, long arg1, IntSupplier arg2)
add(Runnable runnable, long pos, IntSupplier levelGetter)
protected void
b()
pollTask()
method_63558()
pollTask()
protected void
a(aql$a arg0)
scheduleForExecution(ChunkTaskPriorityQueue$TasksForChunk arg0)
method_63551(class_3899$class_10172 arg0)
schedule(LevelPrioritizedQueue$Entry entry)
protected void
a(long arg0)
onRelease(long arg0)
method_63548(long arg0)
onRemove(long chunkPos)
protected ChunkTaskPriorityQueue$TasksForChunk
c()
popTasks()
method_63559()
poll()
public void
close()
close()