net.minecraft.server.level

public class ChunkTaskDispatcher

implements ChunkHolder$LevelChangeListener, AutoCloseable

aro
net.minecraft.server.level.ChunkTaskDispatcher
net.minecraft.class_10171
net.minecraft.server.world.ChunkTaskScheduler
net.minecraft.src.C_345834_
net.minecraft.server.level.ChunkTaskDispatcher

Field summary

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

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
a()
hasWork()
method_63546()
shouldDelayShutdown()
m_353497_()
public void
onLevelChange(dgo 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)
m_6250_(C_1560_ p_362965_, IntSupplier p_369655_, int p_365320_, 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)
m_357084_(long p_365183_, Runnable arg1, boolean arg2)
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)
m_353817_(Runnable p_364993_, long p_367388_, IntSupplier arg2)
protected void
b()
pollTask()
method_63558()
pollTask()
m_352822_()
protected void
a(arp$a arg0)
scheduleForExecution(ChunkTaskPriorityQueue$TasksForChunk arg0)
method_63551(class_3899$class_10172 arg0)
schedule(LevelPrioritizedQueue$Entry entry)
m_352123_(C_5434_$C_346186_ arg0)
protected void
a(long arg0)
onRelease(long arg0)
method_63548(long arg0)
onRemove(long chunkPos)
m_352797_(long arg0)
protected ChunkTaskPriorityQueue$TasksForChunk
c()
popTasks()
method_63559()
poll()
m_354601_()
public void
close()
close()
close()