Package net.minecraft.server.level
Class ChunkTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.ChunkTracker
- Direct Known Subclasses:
 DistanceManager.FixedPlayerDistanceChunkTracker,LoadingChunkTracker,SimulationChunkTracker
- 
Field Summary
Fields inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
levelCount, SOURCE - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedChunkTracker(int p_140701_, int p_140702_, int p_140703_)  - 
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) protected booleanisSource(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, removeFromQueue, removeIf, runUpdates, setLevel 
- 
Constructor Details
- 
ChunkTracker
protected ChunkTracker(int p_140701_, int p_140702_, int p_140703_)  
 - 
 - 
Method Details
- 
isSource
protected boolean isSource(long pPos) - Overrides:
 isSourcein classDynamicGraphMinFixedPoint
 - 
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)  
 -