Class ChunkTaskPriorityQueue<T>

java.lang.Object
net.minecraft.world.chunk.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_i50714_1_, int p_i50714_2_)
  • Method Details

    • resortChunkTasks

      protected void resortChunkTasks(int p_219407_1_, ChunkPos p_219407_2_, int p_219407_3_)
    • submit

      protected void submit(Optional<T> p_219412_1_, long p_219412_2_, int p_219412_4_)
    • release

      protected void release(long p_219416_1_, boolean p_219416_3_)
    • acquire

      private Runnable acquire(long p_219418_1_)
    • pop

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

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

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