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
-
Field Summary
Modifier and TypeFieldDescriptionprivate final it.unimi.dsi.fastutil.longs.Long2IntMap
private final it.unimi.dsi.fastutil.longs.LongSet
private int
Fields inherited from class net.minecraft.world.server.TicketManager.PlayerChunkTracker
chunks, maxDistance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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
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
-
Field Details
-
viewDistance
private int viewDistance -
queueLevels
private final it.unimi.dsi.fastutil.longs.Long2IntMap queueLevels -
toUpdate
private final it.unimi.dsi.fastutil.longs.LongSet toUpdate
-
-
Constructor Details
-
PlayerTicketTracker
protected PlayerTicketTracker(int p_i50682_2_)
-
-
Method Details
-
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_)
-