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
class TicketManager.PlayerChunkTracker extends ChunkDistanceGraph
-
-
Field Summary
Fields Modifier and Type Field Description protected it.unimi.dsi.fastutil.longs.Long2ByteMap
chunks
protected int
maxDistance
-
Constructor Summary
Constructors Modifier Constructor Description protected
PlayerChunkTracker(int p_i50684_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
runAllUpdates()
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
-
-
-
-
Method Detail
-
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()
-
-