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.LongSetprivate final Stringprivate final intFields inherited from class net.minecraft.server.level.ChunkTaskDispatcher
DISPATCHER_PRIORITY_COUNT, sleeping -
Constructor Summary
ConstructorsConstructorDescriptionThrottlingChunkTaskDispatcher(TaskScheduler<Runnable> pExecutor, Executor pDispatcher, int pMaxChunksInExecution) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonRelease(long pChunkPos) protected ChunkTaskPriorityQueue.TasksForChunkpopTasks()protected voidMethods 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> pExecutor, Executor pDispatcher, int pMaxChunksInExecution)
-
-
Method Details
-
onRelease
protected void onRelease(long pChunkPos) - Overrides:
onReleasein classChunkTaskDispatcher
-
popTasks
- Overrides:
popTasksin classChunkTaskDispatcher
-
scheduleForExecution
- Overrides:
scheduleForExecutionin classChunkTaskDispatcher
-
getDebugStatus
-