Package net.minecraft.server.level
Class ThrottlingChunkTaskDispatcher
java.lang.Object
net.minecraft.server.level.ChunkTaskDispatcher
net.minecraft.server.level.ThrottlingChunkTaskDispatcher
- All Implemented Interfaces:
AutoCloseable
,ChunkHolder.LevelChangeListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.LongSet
private final String
private final int
Fields inherited from class net.minecraft.server.level.ChunkTaskDispatcher
DISPATCHER_PRIORITY_COUNT, sleeping
-
Constructor Summary
ConstructorsConstructorDescriptionThrottlingChunkTaskDispatcher
(TaskScheduler<Runnable> p_371877_, Executor p_371691_, int p_371756_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onRelease
(long p_371820_) protected ChunkTaskPriorityQueue.TasksForChunk
popTasks()
protected void
Methods inherited from class net.minecraft.server.level.ChunkTaskDispatcher
close, hasWork, onLevelChange, pollTask, release, submit
-
Field Details
-
chunkPositionsInExecution
private final it.unimi.dsi.fastutil.longs.LongSet chunkPositionsInExecution -
maxChunksInExecution
private final int maxChunksInExecution -
executorSchedulerName
-
-
Constructor Details
-
ThrottlingChunkTaskDispatcher
public ThrottlingChunkTaskDispatcher(TaskScheduler<Runnable> p_371877_, Executor p_371691_, int p_371756_)
-
-
Method Details
-
onRelease
protected void onRelease(long p_371820_) - Overrides:
onRelease
in classChunkTaskDispatcher
-
popTasks
- Overrides:
popTasks
in classChunkTaskDispatcher
-
scheduleForExecution
- Overrides:
scheduleForExecution
in classChunkTaskDispatcher
-
getDebugStatus
-