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/ChunkTaskSchedulerintermediary net/minecraft/class_10171official arh
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PrioritizedConsecutiveExecutorprivate final TaskExecutor<Runnable> static final intprivate static final Loggerprotected booleanprivate final LevelPrioritizedQueue -
Constructor Summary
ConstructorsConstructorDescriptionChunkTaskScheduler(TaskExecutor<Runnable> executor, Executor dispatchExecutor) -
Method Summary
Modifier 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
-
LEVELS
public static final int LEVELS- See Also:
- Mappings:
Namespace Name Mixin selector named LEVELSLnet/minecraft/server/world/ChunkTaskScheduler;LEVELS:Iintermediary field_54036Lnet/minecraft/class_10171;field_54036:Iofficial aLarh;a:I
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/server/world/ChunkTaskScheduler;LOGGER:Lorg/slf4j/Logger;intermediary field_54038Lnet/minecraft/class_10171;field_54038:Lorg/slf4j/Logger;official cLarh;c:Lorg/slf4j/Logger;
-
queue
- Mappings:
Namespace Name Mixin selector named queueLnet/minecraft/server/world/ChunkTaskScheduler;queue:Lnet/minecraft/server/world/LevelPrioritizedQueue;intermediary field_54039Lnet/minecraft/class_10171;field_54039:Lnet/minecraft/class_3899;official dLarh;d:Lari;
-
executor
- Mappings:
Namespace Name Mixin selector named executorLnet/minecraft/server/world/ChunkTaskScheduler;executor:Lnet/minecraft/util/thread/TaskExecutor;intermediary field_54040Lnet/minecraft/class_10171;field_54040:Lnet/minecraft/class_10178;official eLarh;e:Lbtx;
-
dispatcher
- Mappings:
Namespace Name Mixin selector named dispatcherLnet/minecraft/server/world/ChunkTaskScheduler;dispatcher:Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;intermediary field_54041Lnet/minecraft/class_10171;field_54041:Lnet/minecraft/class_10177;official fLarh;f:Lbtu;
-
pollOnUpdate
protected boolean pollOnUpdate- Mappings:
Namespace Name Mixin selector named pollOnUpdateLnet/minecraft/server/world/ChunkTaskScheduler;pollOnUpdate:Zintermediary field_54037Lnet/minecraft/class_10171;field_54037:Zofficial bLarh;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;)Vintermediary <init>Lnet/minecraft/class_10171;<init>(Lnet/minecraft/class_10178;Ljava/util/concurrent/Executor;)Vofficial <init>Larh;<init>(Lbtx;Ljava/util/concurrent/Executor;)V
-
-
Method Details
-
shouldDelayShutdown
public boolean shouldDelayShutdown()- Mappings:
Namespace Name Mixin selector named shouldDelayShutdownLnet/minecraft/server/world/ChunkTaskScheduler;shouldDelayShutdown()Zintermediary method_63546Lnet/minecraft/class_10171;method_63546()Zofficial aLarh;a()Z
-
updateLevel
public void updateLevel(ChunkPos pos, IntSupplier levelGetter, int targetLevel, IntConsumer levelSetter) - Specified by:
updateLevelin interfaceChunkHolder.LevelUpdateListener- Mappings:
Namespace Name Mixin selector named updateLevelLnet/minecraft/server/world/ChunkHolder$LevelUpdateListener;updateLevel(Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)Vintermediary method_17209Lnet/minecraft/class_3193$class_3896;method_17209(Lnet/minecraft/class_1923;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)Vofficial onLevelChangeLard$a;onLevelChange(Ldjo;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)V
-
remove
- Mappings:
Namespace Name Mixin selector named removeLnet/minecraft/server/world/ChunkTaskScheduler;remove(JLjava/lang/Runnable;Z)Vintermediary method_63549Lnet/minecraft/class_10171;method_63549(JLjava/lang/Runnable;Z)Vofficial aLarh;a(JLjava/lang/Runnable;Z)V
-
add
- Mappings:
Namespace Name Mixin selector named addLnet/minecraft/server/world/ChunkTaskScheduler;add(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)Vintermediary method_63553Lnet/minecraft/class_10171;method_63553(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)Vofficial aLarh;a(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)V
-
pollTask
protected void pollTask()- Mappings:
Namespace Name Mixin selector named pollTaskLnet/minecraft/server/world/ChunkTaskScheduler;pollTask()Vintermediary method_63558Lnet/minecraft/class_10171;method_63558()Vofficial bLarh;b()V
-
schedule
- Mappings:
Namespace Name Mixin selector named scheduleLnet/minecraft/server/world/ChunkTaskScheduler;schedule(Lnet/minecraft/server/world/LevelPrioritizedQueue$Entry;)Vintermediary method_63551Lnet/minecraft/class_10171;method_63551(Lnet/minecraft/class_3899$class_10172;)Vofficial aLarh;a(Lari$a;)V
-
onRemove
protected void onRemove(long chunkPos) - Mappings:
Namespace Name Mixin selector named onRemoveLnet/minecraft/server/world/ChunkTaskScheduler;onRemove(J)Vintermediary method_63548Lnet/minecraft/class_10171;method_63548(J)Vofficial aLarh;a(J)V
-
poll
- Mappings:
Namespace Name Mixin selector named pollLnet/minecraft/server/world/ChunkTaskScheduler;poll()Lnet/minecraft/server/world/LevelPrioritizedQueue$Entry;intermediary method_63559Lnet/minecraft/class_10171;method_63559()Lnet/minecraft/class_3899$class_10172;official cLarh;c()Lari$a;
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-