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 Details Link icon

    • LEVELS Link icon

      public 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 Link icon

      private static final Logger 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 Link icon

      private final LevelPrioritizedQueue 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 Link icon

      private final TaskExecutor<Runnable> 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 Link icon

      private final PrioritizedConsecutiveExecutor 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;
    • pollOnUpdate Link icon

      protected 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 Link icon

    • ChunkTaskScheduler Link icon

      public ChunkTaskScheduler(TaskExecutor<Runnable> executor, Executor dispatchExecutor)
      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 Link icon

    • shouldDelayShutdown Link icon

      public 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
    • updateLevel Link icon

      public void updateLevel(ChunkPos pos, IntSupplier levelGetter, int targetLevel, IntConsumer levelSetter)
      Specified by:
      updateLevel in 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 Link icon

      public void remove(long pos, Runnable callback, boolean removeElement)
      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 Link icon

      public void add(Runnable runnable, long pos, IntSupplier levelGetter)
      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
    • pollTask Link icon

      protected 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 Link icon

      protected void schedule(LevelPrioritizedQueue.Entry entry)
      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
    • onRemove Link icon

      protected 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 Link icon

      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;
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable