net.minecraft.server.world

public class ChunkTaskScheduler

implements ChunkHolder$LevelUpdateListener, AutoCloseable

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

Field summary

Modifier and TypeField
public static final int
DISPATCHER_PRIORITY_COUNT
field_54036
LEVELS
private static final org.slf4j.Logger
LOGGER
field_54038
LOGGER
private final LevelPrioritizedQueue
queue
field_54039
queue
private final TaskExecutor<Runnable>
executor
field_54040
executor
private final PrioritizedConsecutiveExecutor
dispatcher
field_54041
dispatcher
protected boolean
sleeping
field_54037
pollOnUpdate

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
hasWork()
method_63546()
shouldDelayShutdown()
public void
onLevelChange(ChunkPos pos, IntSupplier oldLevel, int newLevel, IntConsumer setQueueLevel)
method_17209(class_1923 arg0, IntSupplier arg1, int arg2, IntConsumer arg3)
updateLevel(ChunkPos arg0, IntSupplier arg1, int arg2, IntConsumer arg3)
public void
release(long pos, Runnable whenReleased, boolean clearQueue)
method_63549(long arg0, Runnable arg1, boolean arg2)
remove(long pos, Runnable callback, boolean removeElement)
public void
submit(Runnable task, long pos, IntSupplier level)
method_63553(Runnable arg0, long arg1, IntSupplier arg2)
add(Runnable runnable, long pos, IntSupplier levelGetter)
protected void
pollTask()
method_63558()
pollTask()
protected void
scheduleForExecution(ChunkTaskPriorityQueue$TasksForChunk tasksForChunk)
method_63551(class_3899$class_10172 arg0)
schedule(LevelPrioritizedQueue$Entry entry)
protected void
onRelease(long key)
method_63548(long arg0)
onRemove(long chunkPos)
protected LevelPrioritizedQueue$Entry
popTasks()
method_63559()
poll()
public void
close()
private void
lambda$scheduleForExecution$3(Void arg0)
method_63555(Void arg0)
method_63555(Void v)
private static CompletableFuture[]
lambda$scheduleForExecution$2(int arg0)
method_63547(int arg0)
method_63547(int arg0)
private CompletableFuture
lambda$scheduleForExecution$0(Runnable arg0)
method_63552(Runnable arg0)
method_63552(Runnable runnable)
private static void
lambda$scheduleForExecution$1(Runnable arg0, CompletableFuture arg1)
method_63554(Runnable arg0, CompletableFuture arg1)
method_63554(Runnable arg0, CompletableFuture future)
private void
lambda$pollTask$0()
method_63560()
method_63560()
private void
lambda$submit$0(IntSupplier arg0, long arg1, Runnable arg2)
method_63556(IntSupplier arg0, long arg1, Runnable arg2)
method_63556(IntSupplier arg0, long arg1, Runnable arg2)
private void
lambda$release$0(long arg0, boolean arg1, Runnable arg2)
method_63550(long arg0, boolean arg1, Runnable arg2)
method_63550(long arg0, boolean arg1, Runnable arg2)
private void
lambda$onLevelChange$0(IntSupplier arg0, ChunkPos arg1, int arg2, IntConsumer arg3)
method_63557(IntSupplier arg0, class_1923 arg1, int arg2, IntConsumer arg3)
method_63557(IntSupplier arg0, ChunkPos arg1, int arg2, IntConsumer arg3)