net.minecraft.world.chunk.light

public abstract class LevelPropagator

net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.class_3554
net.minecraft.world.chunk.light.LevelPropagator

Field summary

Modifier and TypeField
public static final long
SOURCE
field_43397
field_43397
private static final int
NO_COMPUTED_LEVEL
field_31706
MAX_LEVEL
protected final int
levelCount
field_15783
levelCount
private final PendingUpdateQueue
priorityQueue
field_43396
pendingUpdateQueue
private final it.unimi.dsi.fastutil.longs.Long2ByteMap
computedLevels
field_15784
pendingUpdates
private volatile boolean
hasWork
field_15782
hasPendingUpdates

Constructor summary

ModifierConstructor
protected (int levelCount, int expectedLevelSize, int expectedTotalSize)

Method summary

Modifier and TypeMethod
protected void
removeFromQueue(long node)
method_15483(long arg0)
removePendingUpdate(long id)
public void
removeIf(LongPredicate pred)
method_24206(LongPredicate arg0)
removePendingUpdateIf(LongPredicate predicate)
private int
calculatePriority(int level, int computedLevel)
method_50014(int arg0, int arg1)
calculateLevel(int a, int b)
protected void
checkNode(long node)
method_15491(long arg0)
resetLevel(long id)
protected void
checkEdge(long from, long to, int newLevelFrom, boolean onlyDecreased)
method_15478(long arg0, long arg1, int arg2, boolean arg3)
updateLevel(long sourceId, long id, int level, boolean decrease)
private void
checkEdge(long from, long to, int newLevelFrom, int levelTo, int oldComputedLevel, boolean onlyDecreased)
method_15482(long arg0, long arg1, int arg2, int arg3, int arg4, boolean arg5)
updateLevel(long sourceId, long id, int level, int currentLevel, int arg4, boolean decrease)
protected final void
checkNeighbor(long from, long to, int level, boolean onlyDecreased)
method_15484(long arg0, long arg1, int arg2, boolean arg3)
propagateLevel(long sourceId, long targetId, int level, boolean decrease)
protected final boolean
hasWork()
method_15489()
hasPendingUpdates()
protected final int
runUpdates(int count)
method_15492(int arg0)
applyPendingUpdates(int maxSteps)
public int
getQueueSize()
method_24208()
getPendingUpdateCount()
protected boolean
isSource(long node)
method_15494(long arg0)
isMarker(long id)
protected abstract int
getComputedLevel(long node, long knownParent, int knownLevelFromParent)
method_15486(long arg0, long arg1, int arg2)
recalculateLevel(long id, long excludedId, int maxLevel)
protected abstract void
checkNeighborsAfterUpdate(long node, int level, boolean onlyDecrease)
method_15487(long arg0, int arg1, boolean arg2)
propagateLevel(long id, int level, boolean decrease)
protected abstract int
getLevel(long node)
method_15480(long arg0)
getLevel(long id)
protected abstract void
setLevel(long node, int level)
method_15485(long arg0, int arg1)
setLevel(long id, int level)
protected abstract int
computeLevelFromNeighbor(long from, long to, int fromLevel)
method_15488(long arg0, long arg1, int arg2)
getPropagatedLevel(long sourceId, long targetId, int level)
private static void
lambda$removeIf$0(LongPredicate arg0, it.unimi.dsi.fastutil.longs.LongList arg1, long arg2)
method_24207(LongPredicate arg0, it.unimi.dsi.fastutil.longs.LongList arg1, long arg2)
method_24207(LongPredicate arg0, it.unimi.dsi.fastutil.longs.LongList arg1, long arg2)