Package net.minecraft.util
Class SectionDistanceGraph
java.lang.Object
net.minecraft.world.lighting.LevelBasedGraph
net.minecraft.util.SectionDistanceGraph
- Direct Known Subclasses:
PointOfInterestManager.DistanceGraph
,SectionLightStorage
-
Constructor Summary
ModifierConstructorDescriptionprotected
SectionDistanceGraph
(int p_i50706_1_, int p_i50706_2_, int p_i50706_3_) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
Constructor Details
-
SectionDistanceGraph
protected SectionDistanceGraph(int p_i50706_1_, int p_i50706_2_, int p_i50706_3_)
-
-
Method Details
-
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_)
-