Package net.minecraft.util.collection
Class PriorityIterator<T>
java.lang.Object
com.google.common.collect.UnmodifiableIterator<T>
com.google.common.collect.AbstractIterator<T>
net.minecraft.util.collection.PriorityIterator<T>
- All Implemented Interfaces:
Iterator<T>
A queue-like iterator that orders its values by the priority, or the insertion order
if the priorities equal.
- Mappings:
Namespace Name named net/minecraft/util/collection/PriorityIteratorintermediary net/minecraft/class_8917official bgv
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate intprivate final Int2ObjectMap<Deque<T>> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.common.collect.AbstractIterator
computeNext, endOfData, hasNext, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
LOWEST_PRIORITY
private static final int LOWEST_PRIORITY- See Also:
- Mappings:
Namespace Name Mixin selector named LOWEST_PRIORITYLnet/minecraft/util/collection/PriorityIterator;LOWEST_PRIORITY:Iintermediary field_48714Lnet/minecraft/class_8917;field_48714:Iofficial aLbgv;a:I
-
maxPriorityQueue
- Mappings:
Namespace Name Mixin selector named maxPriorityQueueLnet/minecraft/util/collection/PriorityIterator;maxPriorityQueue:Ljava/util/Deque;intermediary field_48715Lnet/minecraft/class_8917;field_48715:Ljava/util/Deque;official bLbgv;b:Ljava/util/Deque;
-
maxPriority
private int maxPriority- Mappings:
Namespace Name Mixin selector named maxPriorityLnet/minecraft/util/collection/PriorityIterator;maxPriority:Iintermediary field_48716Lnet/minecraft/class_8917;field_48716:Iofficial cLbgv;c:I
-
queuesByPriority
- Mappings:
Namespace Name Mixin selector named queuesByPriorityLnet/minecraft/util/collection/PriorityIterator;queuesByPriority:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;intermediary field_48717Lnet/minecraft/class_8917;field_48717:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;official dLbgv;d:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
-
Constructor Details
-
PriorityIterator
public PriorityIterator()
-
-
Method Details
-
enqueue
Addsvaluewith the prioritypriority.- Mappings:
Namespace Name Mixin selector named enqueueLnet/minecraft/util/collection/PriorityIterator;enqueue(Ljava/lang/Object;I)Vintermediary method_54726Lnet/minecraft/class_8917;method_54726(Ljava/lang/Object;I)Vofficial aLbgv;a(Ljava/lang/Object;I)V
-
next
- Specified by:
nextin interfaceIterator<T>- Overrides:
nextin classAbstractIterator<T>- Mappings:
Namespace Name Mixin selector named nextLnet/minecraft/util/collection/PriorityIterator;next()Ljava/lang/Object;intermediary computeNextLnet/minecraft/class_8917;computeNext()Ljava/lang/Object;official computeNextLbgv;computeNext()Ljava/lang/Object;
-
refreshMaxPriority
private void refreshMaxPriority()- Mappings:
Namespace Name Mixin selector named refreshMaxPriorityLnet/minecraft/util/collection/PriorityIterator;refreshMaxPriority()Vintermediary method_56533Lnet/minecraft/class_8917;method_56533()Vofficial aLbgv;a()V
-