Package net.minecraft.world.chunk
Class ChunkDistanceGraph
java.lang.Object
net.minecraft.world.lighting.LevelBasedGraph
net.minecraft.world.chunk.ChunkDistanceGraph
- Direct Known Subclasses:
TicketManager.ChunkTicketTracker
,TicketManager.PlayerChunkTracker
-
Constructor Summary
ModifierConstructorDescriptionprotected
ChunkDistanceGraph
(int p_i50712_1_, int p_i50712_2_, int p_i50712_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_215492_1_) protected boolean
isSource
(long p_215485_1_) void
update
(long p_215491_1_, int p_215491_3_, boolean p_215491_4_) Methods inherited from class net.minecraft.world.lighting.LevelBasedGraph
checkEdge, checkNeighbor, checkNode, getLevel, getQueueSize, hasWork, queuedUpdateSize, removeFromQueue, removeIf, runUpdates, setLevel
-
Constructor Details
-
ChunkDistanceGraph
protected ChunkDistanceGraph(int p_i50712_1_, int p_i50712_2_, int p_i50712_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_215492_1_) -
update
public void update(long p_215491_1_, int p_215491_3_, boolean p_215491_4_)
-