Class LeveledPriorityQueue
java.lang.Object
net.minecraft.world.level.lighting.LeveledPriorityQueue
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private final int
private final it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkFirstQueuedLevel
(int pEndLevelIndex) void
dequeue
(long pValue, int pLevelIndex, int pEndIndex) void
enqueue
(long pValue, int pLevelIndex) boolean
isEmpty()
long
-
Field Details
-
levelCount
private final int levelCount -
queues
private final it.unimi.dsi.fastutil.longs.LongLinkedOpenHashSet[] queues -
firstQueuedLevel
private int firstQueuedLevel
-
-
Constructor Details
-
LeveledPriorityQueue
public LeveledPriorityQueue(int pLevelCount, int pExpectedSize)
-
-
Method Details
-
removeFirstLong
public long removeFirstLong() -
isEmpty
public boolean isEmpty() -
dequeue
public void dequeue(long pValue, int pLevelIndex, int pEndIndex) -
enqueue
public void enqueue(long pValue, int pLevelIndex) -
checkFirstQueuedLevel
private void checkFirstQueuedLevel(int pEndLevelIndex)
-