Package net.minecraft.server.world
Class LevelPrioritizedQueue<T>
java.lang.Object
net.minecraft.server.world.LevelPrioritizedQueue<T>
public class LevelPrioritizedQueue<T> extends Object
-
Field Summary
Fields Modifier and Type Field Description private LongSetblockingChunksprivate intfirstNonEmptyLevelstatic intLEVEL_COUNTprivate List<Long2ObjectLinkedOpenHashMap<List<Optional<T>>>>levelToPosToElementsprivate intmaxBlockingprivate Stringname -
Constructor Summary
Constructors Constructor Description LevelPrioritizedQueue(String name, int maxSize) -
Method Summary
Modifier and Type Method Description protected voidadd(Optional<T> element, long pos, int level)private RunnablecreateBlockingAdder(long pos)(package private) LongSetgetBlockingChunks()Stream<com.mojang.datafixers.util.Either<T,Runnable>>poll()protected voidremove(long pos, boolean removeElement)StringtoString()protected voidupdateLevel(int fromLevel, ChunkPos pos, int toLevel)
-
Field Details
-
LEVEL_COUNT
public static final int LEVEL_COUNT -
levelToPosToElements
-
firstNonEmptyLevel
private volatile int firstNonEmptyLevel -
name
-
blockingChunks
-
maxBlocking
private final int maxBlocking
-
-
Constructor Details
-
LevelPrioritizedQueue
-
-
Method Details