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 aro
  • Field Details

    • LEVELS

      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 Laro;a:I
    • LOGGER

      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 Laro;c:Lorg/slf4j/Logger;
    • queue

      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 Laro;d:Larp;
    • executor

      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 Laro;e:Lbsd;
    • dispatcher

      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 Laro;f:Lbsa;
    • pollOnUpdate

      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 Laro;b:Z
  • Constructor Details

    • ChunkTaskScheduler

      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> Laro;<init>(Lbsd;Ljava/util/concurrent/Executor;)V
  • Method Details

    • shouldDelayShutdown

      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 Laro;a()Z
    • updateLevel

      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 Lark$a;onLevelChange(Ldgn;Ljava/util/function/IntSupplier;ILjava/util/function/IntConsumer;)V
    • remove

      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 Laro;a(JLjava/lang/Runnable;Z)V
    • add

      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 Laro;a(Ljava/lang/Runnable;JLjava/util/function/IntSupplier;)V
    • pollTask

      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 Laro;b()V
    • schedule

      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 Laro;a(Larp$a;)V
    • onRemove

      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 Laro;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 Laro;c()Larp$a;
    • close

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