Package net.minecraft.world.server
Class TicketManager.PlayerChunkTracker
java.lang.Object
net.minecraft.world.lighting.LevelBasedGraph
net.minecraft.world.chunk.ChunkDistanceGraph
net.minecraft.world.server.TicketManager.PlayerChunkTracker
- Direct Known Subclasses:
TicketManager.PlayerTicketTracker
- Enclosing class:
- TicketManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.longs.Long2ByteMap
protected final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
getLevel
(long p_215471_1_) protected int
getLevelFromSource
(long p_215492_1_) private boolean
havePlayer
(long p_215496_1_) protected void
onLevelChange
(long p_215495_1_, int p_215495_3_, int p_215495_4_) void
protected void
setLevel
(long p_215476_1_, int p_215476_3_) Methods inherited from class net.minecraft.world.chunk.ChunkDistanceGraph
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
-
chunks
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap chunks -
maxDistance
protected final int maxDistance
-
-
Constructor Details
-
PlayerChunkTracker
protected PlayerChunkTracker(int p_i50684_2_)
-
-
Method Details
-
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
-
onLevelChange
protected void onLevelChange(long p_215495_1_, int p_215495_3_, int p_215495_4_) -
getLevelFromSource
protected int getLevelFromSource(long p_215492_1_) - Specified by:
getLevelFromSource
in classChunkDistanceGraph
-
havePlayer
private boolean havePlayer(long p_215496_1_) -
runAllUpdates
public void runAllUpdates()
-