Class DynamicGraphMinFixedPoint
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
- Direct Known Subclasses:
ChunkTracker
,SectionTracker
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2ByteMap
private boolean
protected final int
private static final int
private final LeveledPriorityQueue
static final long
-
Constructor Summary
ModifierConstructorDescriptionprotected
DynamicGraphMinFixedPoint
(int p_75543_, int p_75544_, int p_75545_) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
calculatePriority
(int p_278256_, int p_278328_) protected void
checkEdge
(long p_75577_, long p_75578_, int p_75579_, boolean p_75580_) private void
checkEdge
(long p_75570_, long p_75571_, int p_75572_, int p_75573_, int p_75574_, boolean p_75575_) protected final void
checkNeighbor
(long p_75594_, long p_75595_, int p_75596_, boolean p_75597_) protected abstract void
checkNeighborsAfterUpdate
(long p_75563_, int p_75564_, boolean p_75565_) protected void
checkNode
(long p_75602_) protected abstract int
computeLevelFromNeighbor
(long p_75590_, long p_75591_, int p_75592_) protected abstract int
getComputedLevel
(long p_75566_, long p_75567_, int p_75568_) protected abstract int
getLevel
(long p_75599_) int
protected final boolean
hasWork()
protected boolean
isSource
(long p_75551_) protected void
removeFromQueue
(long p_75601_) void
removeIf
(LongPredicate p_75582_) protected final int
runUpdates
(int p_75589_) protected abstract void
setLevel
(long p_75552_, int p_75553_)
-
Field Details
-
SOURCE
public static final long SOURCE- See Also:
-
NO_COMPUTED_LEVEL
private static final int NO_COMPUTED_LEVEL- See Also:
-
levelCount
protected final int levelCount -
priorityQueue
-
computedLevels
private final it.unimi.dsi.fastutil.longs.Long2ByteMap computedLevels -
hasWork
private volatile boolean hasWork
-
-
Constructor Details
-
DynamicGraphMinFixedPoint
protected DynamicGraphMinFixedPoint(int p_75543_, int p_75544_, int p_75545_)
-
-
Method Details
-
removeFromQueue
protected void removeFromQueue(long p_75601_) -
removeIf
-
calculatePriority
private int calculatePriority(int p_278256_, int p_278328_) -
checkNode
protected void checkNode(long p_75602_) -
checkEdge
protected void checkEdge(long p_75577_, long p_75578_, int p_75579_, boolean p_75580_) -
checkEdge
private void checkEdge(long p_75570_, long p_75571_, int p_75572_, int p_75573_, int p_75574_, boolean p_75575_) -
checkNeighbor
protected final void checkNeighbor(long p_75594_, long p_75595_, int p_75596_, boolean p_75597_) -
hasWork
protected final boolean hasWork() -
runUpdates
protected final int runUpdates(int p_75589_) -
getQueueSize
public int getQueueSize() -
isSource
protected boolean isSource(long p_75551_) -
getComputedLevel
protected abstract int getComputedLevel(long p_75566_, long p_75567_, int p_75568_) -
checkNeighborsAfterUpdate
protected abstract void checkNeighborsAfterUpdate(long p_75563_, int p_75564_, boolean p_75565_) -
getLevel
protected abstract int getLevel(long p_75599_) -
setLevel
protected abstract void setLevel(long p_75552_, int p_75553_) -
computeLevelFromNeighbor
protected abstract int computeLevelFromNeighbor(long p_75590_, long p_75591_, int p_75592_)
-