Package net.minecraft.util
Class SectionDistanceGraph
- java.lang.Object
-
- net.minecraft.world.lighting.LevelBasedGraph
-
- net.minecraft.util.SectionDistanceGraph
-
- Direct Known Subclasses:
PointOfInterestManager.DistanceGraph
,SectionLightStorage
public abstract class SectionDistanceGraph extends LevelBasedGraph
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SectionDistanceGraph(int p_i50706_1_, int p_i50706_2_, int p_i50706_3_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkNeighborsAfterUpdate(long p_215478_1_, int p_215478_3_, boolean p_215478_4_)
protected int
computeLevelFromNeighbor(long p_215480_1_, long p_215480_3_, int p_215480_5_)
protected int
getComputedLevel(long p_215477_1_, long p_215477_3_, int p_215477_5_)
protected abstract int
getLevelFromSource(long p_215516_1_)
protected boolean
isSource(long p_215485_1_)
void
update(long p_215515_1_, int p_215515_3_, boolean p_215515_4_)
-
Methods inherited from class net.minecraft.world.lighting.LevelBasedGraph
checkEdge, checkNeighbor, checkNode, getLevel, getQueueSize, hasWork, queuedUpdateSize, removeFromQueue, removeIf, runUpdates, setLevel
-
-
-
-
Method Detail
-
isSource
protected boolean isSource(long p_215485_1_)
- Specified by:
isSource
in classLevelBasedGraph
-
checkNeighborsAfterUpdate
protected void checkNeighborsAfterUpdate(long p_215478_1_, int p_215478_3_, boolean p_215478_4_)
- Specified by:
checkNeighborsAfterUpdate
in classLevelBasedGraph
-
getComputedLevel
protected int getComputedLevel(long p_215477_1_, long p_215477_3_, int p_215477_5_)
- Specified by:
getComputedLevel
in classLevelBasedGraph
-
computeLevelFromNeighbor
protected int computeLevelFromNeighbor(long p_215480_1_, long p_215480_3_, int p_215480_5_)
- Specified by:
computeLevelFromNeighbor
in classLevelBasedGraph
-
getLevelFromSource
protected abstract int getLevelFromSource(long p_215516_1_)
-
update
public void update(long p_215515_1_, int p_215515_3_, boolean p_215515_4_)
-
-