net.minecraft.server.level

public class ChunkTaskPriorityQueue<T>

adk
net.minecraft.server.level.ChunkTaskPriorityQueue
net.minecraft.class_3899
net.minecraft.server.world.LevelPrioritizedQueue
net.minecraft.src.C_5434_
net.minecraft.server.level.ChunkTaskQueue

Field summary

Modifier and TypeField
public static final int
a
PRIORITY_LEVEL_COUNT
field_17241
LEVEL_COUNT
f_140508_
private final List<it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<List<Optional<T>>>>
b
taskQueue
field_17243
levelToPosToElements
f_140509_
private volatile int
c
firstQueue
field_17244
firstNonEmptyLevel
f_140510_
private final String
d
name
field_17247
name
f_140511_
private final it.unimi.dsi.fastutil.longs.LongSet
e
acquired
field_17444
blockingChunks
f_140512_
private final int
f
maxTasks
field_17445
maxBlocking
f_140513_

Constructor summary

ModifierConstructor
public (String name, int maxSize)

Method summary

Modifier and TypeMethod
protected void
a(int arg0, cac arg1, int arg2)
resortChunkTasks(int arg0, ChunkPos arg1, int arg2)
method_17272(int arg0, class_1923 arg1, int arg2)
updateLevel(int fromLevel, ChunkPos pos, int toLevel)
m_140521_(int p_140523_, C_1560_ p_140524_, int arg2)
protected void
a(Optional<T> arg0, long arg1, int arg2)
submit(Optional<T> arg0, long arg1, int arg2)
method_17274(Optional<T> arg0, long arg1, int arg2)
add(Optional<T> element, long pos, int level)
m_140535_(Optional<T> p_140537_, long p_140538_, int arg2)
protected void
a(long arg0, boolean arg1)
release(long arg0, boolean arg1)
method_17609(long arg0, boolean arg1)
remove(long pos, boolean removeElement)
m_140530_(long p_140532_, boolean arg1)
private Runnable
a(long arg0)
acquire(long arg0)
method_17607(long arg0)
createBlockingAdder(long pos)
m_140525_(long arg0)
public Stream<com.mojang.datafixers.util.Either<T, Runnable>>
a()
pop()
method_17606()
poll()
m_140518_()
public boolean
b()
hasWork()
method_39993()
hasQueuedElement()
m_201908_()
it.unimi.dsi.fastutil.longs.LongSet
c()
getAcquired()
method_21679()
getBlockingChunks()
m_140539_()