Package net.minecraft.village
Class PointOfInterestManager.DistanceGraph
java.lang.Object
net.minecraft.world.lighting.LevelBasedGraph
net.minecraft.util.SectionDistanceGraph
net.minecraft.village.PointOfInterestManager.DistanceGraph
- Enclosing class:
- PointOfInterestManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getLevel
(long p_215471_1_) protected int
getLevelFromSource
(long p_215516_1_) void
protected void
setLevel
(long p_215476_1_, int p_215476_3_) Methods inherited from class net.minecraft.util.SectionDistanceGraph
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
Methods inherited from class net.minecraft.world.lighting.LevelBasedGraph
checkEdge, checkNeighbor, checkNode, getQueueSize, hasWork, queuedUpdateSize, removeFromQueue, removeIf, runUpdates
-
Field Details
-
levels
private final it.unimi.dsi.fastutil.longs.Long2ByteMap levels
-
-
Constructor Details
-
DistanceGraph
protected DistanceGraph()
-
-
Method Details
-
getLevelFromSource
protected int getLevelFromSource(long p_215516_1_) - Specified by:
getLevelFromSource
in classSectionDistanceGraph
-
getLevel
protected int getLevel(long p_215471_1_) - Specified by:
getLevel
in classLevelBasedGraph
-
setLevel
protected void setLevel(long p_215476_1_, int p_215476_3_) - Specified by:
setLevel
in classLevelBasedGraph
-
runAllUpdates
public void runAllUpdates()
-