Package net.minecraft.server.level
Class DistanceManager.PlayerTicketTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.ChunkTracker
net.minecraft.server.level.DistanceManager.FixedPlayerDistanceChunkTracker
net.minecraft.server.level.DistanceManager.PlayerTicketTracker
- Enclosing class:
- DistanceManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate it.unimi.dsi.fastutil.longs.Long2IntMap
private it.unimi.dsi.fastutil.longs.LongSet
private int
Fields inherited from class net.minecraft.server.level.DistanceManager.FixedPlayerDistanceChunkTracker
chunks, maxDistance
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
haveTicketFor(int p_140933_)
private void
onLevelChange(long p_140919_, int p_140920_, boolean p_140921_, boolean p_140922_)
protected void
onLevelChange(long p_140915_, int p_140916_, int p_140917_)
void
void
updateViewDistance(int p_140913_)
Methods inherited from class net.minecraft.server.level.DistanceManager.FixedPlayerDistanceChunkTracker
getLevel, getLevelFromSource, setLevel
Methods inherited from class net.minecraft.server.level.ChunkTracker
checkNeighborsAfterUpdate, computeLevelFromNeighbor, getComputedLevel, isSource, update
Methods inherited from class net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
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_140910_)
-
-
Method Details
-
onLevelChange
protected void onLevelChange(long p_140915_, int p_140916_, int p_140917_)- Overrides:
onLevelChange
in classDistanceManager.FixedPlayerDistanceChunkTracker
-
updateViewDistance
public void updateViewDistance(int p_140913_) -
onLevelChange
private void onLevelChange(long p_140919_, int p_140920_, boolean p_140921_, boolean p_140922_) -
runAllUpdates
public void runAllUpdates()- Overrides:
runAllUpdates
in classDistanceManager.FixedPlayerDistanceChunkTracker
-
haveTicketFor
private boolean haveTicketFor(int p_140933_)
-