Class ChunkTaskPriorityQueue<T>

java.lang.Object
net.minecraft.server.level.ChunkTaskPriorityQueue<T>

public class ChunkTaskPriorityQueue<T> extends Object
  • Field Details

    • PRIORITY_LEVEL_COUNT

      public static final int PRIORITY_LEVEL_COUNT
    • taskQueue

      private final List<it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<List<Optional<T>>>> taskQueue
    • firstQueue

      private volatile int firstQueue
    • name

      private final String name
    • acquired

      private final it.unimi.dsi.fastutil.longs.LongSet acquired
    • maxTasks

      private final int maxTasks
  • Constructor Details

    • ChunkTaskPriorityQueue

      public ChunkTaskPriorityQueue(String p_140516_, int p_140517_)
  • Method Details

    • resortChunkTasks

      protected void resortChunkTasks(int p_140522_, ChunkPos p_140523_, int p_140524_)
    • submit

      protected void submit(Optional<T> p_140536_, long p_140537_, int p_140538_)
    • release

      protected void release(long p_140531_, boolean p_140532_)
    • acquire

      private Runnable acquire(long p_140526_)
    • pop

      @Nullable public Stream<com.mojang.datafixers.util.Either<T,Runnable>> pop()
    • hasWork

      public boolean hasWork()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAcquired

      it.unimi.dsi.fastutil.longs.LongSet getAcquired()