Package net.minecraft.world.server
Class TicketManager.PlayerTicketTracker
- java.lang.Object
-
- net.minecraft.world.lighting.LevelBasedGraph
-
- net.minecraft.world.chunk.ChunkDistanceGraph
-
- net.minecraft.world.server.TicketManager.PlayerChunkTracker
-
- net.minecraft.world.server.TicketManager.PlayerTicketTracker
-
- Enclosing class:
- TicketManager
class TicketManager.PlayerTicketTracker extends TicketManager.PlayerChunkTracker
-
-
Field Summary
Fields Modifier and Type Field Description private it.unimi.dsi.fastutil.longs.Long2IntMap
queueLevels
private it.unimi.dsi.fastutil.longs.LongSet
toUpdate
private int
viewDistance
-
Fields inherited from class net.minecraft.world.server.TicketManager.PlayerChunkTracker
chunks, maxDistance
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PlayerTicketTracker(int p_i50682_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
haveTicketFor(int p_215505_1_)
private void
onLevelChange(long p_215504_1_, int p_215504_3_, boolean p_215504_4_, boolean p_215504_5_)
protected void
onLevelChange(long p_215495_1_, int p_215495_3_, int p_215495_4_)
void
runAllUpdates()
void
updateViewDistance(int p_215508_1_)
-
Methods inherited from class net.minecraft.world.server.TicketManager.PlayerChunkTracker
getLevel, getLevelFromSource, setLevel
-
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
-
onLevelChange
protected void onLevelChange(long p_215495_1_, int p_215495_3_, int p_215495_4_)
- Overrides:
onLevelChange
in classTicketManager.PlayerChunkTracker
-
updateViewDistance
public void updateViewDistance(int p_215508_1_)
-
onLevelChange
private void onLevelChange(long p_215504_1_, int p_215504_3_, boolean p_215504_4_, boolean p_215504_5_)
-
runAllUpdates
public void runAllUpdates()
- Overrides:
runAllUpdates
in classTicketManager.PlayerChunkTracker
-
haveTicketFor
private boolean haveTicketFor(int p_215505_1_)
-
-