Package net.minecraft.server.world
Class ChunkTaskScheduler
java.lang.Object
net.minecraft.server.world.ChunkTaskScheduler
- All Implemented Interfaces:
- AutoCloseable,- ChunkHolder.LevelUpdateListener
- Direct Known Subclasses:
- ThrottledChunkTaskScheduler
public class ChunkTaskScheduler
extends Object
implements ChunkHolder.LevelUpdateListener, AutoCloseable
- Mappings:
- Namespace - Name - named - net/minecraft/server/world/ChunkTaskScheduler- intermediary - net/minecraft/class_10171- official - aqk
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final PrioritizedConsecutiveExecutorprivate final TaskExecutor<Runnable> static final intprivate static final Loggerprotected booleanprivate final LevelPrioritizedQueue
- 
Constructor SummaryConstructorsConstructorDescriptionChunkTaskScheduler(TaskExecutor<Runnable> executor, Executor dispatchExecutor) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidadd(Runnable runnable, long pos, IntSupplier levelGetter) voidclose()protected voidonRemove(long chunkPos) protected LevelPrioritizedQueue.Entrypoll()protected voidpollTask()voidprotected voidbooleanvoidupdateLevel(ChunkPos pos, IntSupplier levelGetter, int targetLevel, IntConsumer levelSetter) 
- 
Field Details- 
LEVELSpublic static final int LEVELS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - LEVELS- Lnet/minecraft/server/world/ChunkTaskScheduler;LEVELS:I- intermediary - field_54036- Lnet/minecraft/class_10171;field_54036:I- official - a- Laqk;a:I
 
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/server/world/ChunkTaskScheduler;LOGGER:Lorg/slf4j/Logger;- intermediary - field_54038- Lnet/minecraft/class_10171;field_54038:Lorg/slf4j/Logger;- official - c- Laqk;c:Lorg/slf4j/Logger;
 
- 
queue- Mappings:
- Namespace - Name - Mixin selector - named - queue- Lnet/minecraft/server/world/ChunkTaskScheduler;queue:Lnet/minecraft/server/world/LevelPrioritizedQueue;- intermediary - field_54039- Lnet/minecraft/class_10171;field_54039:Lnet/minecraft/class_3899;- official - d- Laqk;d:Laql;
 
- 
executor- Mappings:
- Namespace - Name - Mixin selector - named - executor- Lnet/minecraft/server/world/ChunkTaskScheduler;executor:Lnet/minecraft/util/thread/TaskExecutor;- intermediary - field_54040- Lnet/minecraft/class_10171;field_54040:Lnet/minecraft/class_10178;- official - e- Laqk;e:Lbrg;
 
- 
dispatcher- Mappings:
- Namespace - Name - Mixin selector - named - dispatcher- Lnet/minecraft/server/world/ChunkTaskScheduler;dispatcher:Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;- intermediary - field_54041- Lnet/minecraft/class_10171;field_54041:Lnet/minecraft/class_10177;- official - f- Laqk;f:Lbrd;
 
- 
pollOnUpdateprotected boolean pollOnUpdate- Mappings:
- Namespace - Name - Mixin selector - named - pollOnUpdate- Lnet/minecraft/server/world/ChunkTaskScheduler;pollOnUpdate:Z- intermediary - field_54037- Lnet/minecraft/class_10171;field_54037:Z- official - b- Laqk;b:Z
 
 
- 
- 
Constructor Details- 
ChunkTaskScheduler- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/server/world/ChunkTaskScheduler;<init>(Lnet/minecraft/util/thread/TaskExecutor;Ljava/util/concurrent/Executor;)V- intermediary - <init>- Lnet/minecraft/class_10171;<init>(Lnet/minecraft/class_10178;Ljava/util/concurrent/Executor;)V- official - <init>- Laqk;<init>(Lbrg;Ljava/util/concurrent/Executor;)V
 
 
- 
- 
Method Details- 
shouldDelayShutdownpublic boolean shouldDelayShutdown()- Mappings:
- Namespace - Name - Mixin selector - named - shouldDelayShutdown- Lnet/minecraft/server/world/ChunkTaskScheduler;shouldDelayShutdown()Z- intermediary - method_63546- Lnet/minecraft/class_10171;method_63546()Z- official - a- Laqk;a()Z
 
- 
updateLevelpublic void updateLevel(ChunkPos pos, IntSupplier levelGetter, int targetLevel, IntConsumer levelSetter) - Specified by:
- updateLevelin interface- ChunkHolder.LevelUpdateListener
- Mappings:
- Namespace - Name - Mixin selector - named - updateLevel- Lnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;updateLevel(Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)V- intermediary - method_17209- Lnet/minecraft/class_3193$class_3896;method_17209(Lnet/minecraft/class_1923;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)V- official - onLevelChange- Laqg$a;onLevelChange(Ldfp;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)V
 
- 
remove- Mappings:
- Namespace - Name - Mixin selector - named - remove- Lnet/minecraft/server/world/ChunkTaskScheduler;remove(JLjava/lang/Runnable;Z)V- intermediary - method_63549- Lnet/minecraft/class_10171;method_63549(JLjava/lang/Runnable;Z)V- official - a- Laqk;a(JLjava/lang/Runnable;Z)V
 
- 
add- Mappings:
- Namespace - Name - Mixin selector - named - add- Lnet/minecraft/server/world/ChunkTaskScheduler;add(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)V- intermediary - method_63553- Lnet/minecraft/class_10171;method_63553(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)V- official - a- Laqk;a(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)V
 
- 
pollTaskprotected void pollTask()- Mappings:
- Namespace - Name - Mixin selector - named - pollTask- Lnet/minecraft/server/world/ChunkTaskScheduler;pollTask()V- intermediary - method_63558- Lnet/minecraft/class_10171;method_63558()V- official - b- Laqk;b()V
 
- 
schedule- Mappings:
- Namespace - Name - Mixin selector - named - schedule- Lnet/minecraft/server/world/ChunkTaskScheduler;schedule(Lnet/minecraft/server/world/LevelPrioritizedQueue$Entry;)V- intermediary - method_63551- Lnet/minecraft/class_10171;method_63551(Lnet/minecraft/class_3899$class_10172;)V- official - a- Laqk;a(Laql$a;)V
 
- 
onRemoveprotected void onRemove(long chunkPos) - Mappings:
- Namespace - Name - Mixin selector - named - onRemove- Lnet/minecraft/server/world/ChunkTaskScheduler;onRemove(J)V- intermediary - method_63548- Lnet/minecraft/class_10171;method_63548(J)V- official - a- Laqk;a(J)V
 
- 
poll- Mappings:
- Namespace - Name - Mixin selector - named - poll- Lnet/minecraft/server/world/ChunkTaskScheduler;poll()Lnet/minecraft/server/world/LevelPrioritizedQueue$Entry;- intermediary - method_63559- Lnet/minecraft/class_10171;method_63559()Lnet/minecraft/class_3899$class_10172;- official - c- Laqk;c()Laql$a;
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
 
-