Class SequencedPriorityIterator<T>

java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<T>
net.minecraft.util.SequencedPriorityIterator<T>
All Implemented Interfaces:
Iterator<T>

public final class SequencedPriorityIterator<T> extends com.google.common.collect.AbstractIterator<T>
  • Field Details

    • MIN_PRIO

      private static final int MIN_PRIO
      See Also:
    • highestPrioQueue

      @Nullable private Deque<T> highestPrioQueue
    • highestPrio

      private int highestPrio
    • queuesByPriority

      private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<Deque<T>> queuesByPriority
  • Constructor Details

    • SequencedPriorityIterator

      public SequencedPriorityIterator()
  • Method Details

    • add

      public void add(T p_312570_, int p_312199_)
    • computeNext

      @Nullable protected T computeNext()
      Specified by:
      computeNext in class com.google.common.collect.AbstractIterator<T>
    • switchCacheToNextHighestPrioQueue

      private void switchCacheToNextHighestPrioQueue()