Package net.minecraft.server.level
Class SectionTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.SectionTracker
- Direct Known Subclasses:
PoiManager.DistanceTracker
-
Field Summary
Fields inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
levelCount, SOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckNeighborsAfterUpdate(long pPos, int pLevel, boolean pIsDecreasing) protected intcomputeLevelFromNeighbor(long pStartPos, long pEndPos, int pStartLevel) Returns level propagated from start position with specified level to the neighboring end position.protected intgetComputedLevel(long pPos, long pExcludedSourcePos, int pLevel) Computes level propagated from neighbors of specified position with given existing level, excluding the given source position.protected abstract intgetLevelFromSource(long pPos) voidupdate(long pPos, int pLevel, boolean pIsDecreasing) Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
checkEdge, checkNeighbor, checkNode, getLevel, getQueueSize, hasWork, isSource, removeFromQueue, removeIf, runUpdates, setLevel
-
Constructor Details
-
SectionTracker
protected SectionTracker(int p_8274_, int p_8275_, int p_8276_)
-
-
Method Details
-
checkNeighborsAfterUpdate
protected void checkNeighborsAfterUpdate(long pPos, int pLevel, boolean pIsDecreasing) - Specified by:
checkNeighborsAfterUpdatein classDynamicGraphMinFixedPoint
-
getComputedLevel
protected int getComputedLevel(long pPos, long pExcludedSourcePos, int pLevel) Computes level propagated from neighbors of specified position with given existing level, excluding the given source position.- Specified by:
getComputedLevelin classDynamicGraphMinFixedPoint
-
computeLevelFromNeighbor
protected int computeLevelFromNeighbor(long pStartPos, long pEndPos, int pStartLevel) Returns level propagated from start position with specified level to the neighboring end position.- Specified by:
computeLevelFromNeighborin classDynamicGraphMinFixedPoint
-
getLevelFromSource
protected abstract int getLevelFromSource(long pPos) -
update
public void update(long pPos, int pLevel, boolean pIsDecreasing)
-