Package net.minecraft.server.level
Class DistanceManager.FixedPlayerDistanceChunkTracker
java.lang.Object
net.minecraft.world.level.lighting.DynamicGraphMinFixedPoint
net.minecraft.server.level.ChunkTracker
net.minecraft.server.level.DistanceManager.FixedPlayerDistanceChunkTracker
- Direct Known Subclasses:
DistanceManager.PlayerTicketTracker
- Enclosing class:
- DistanceManager
-
Field Summary
Modifier and TypeFieldDescriptionprotected it.unimi.dsi.fastutil.longs.Long2ByteMap
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
dumpChunks(String p_143213_)
protected int
getLevel(long p_140901_)
protected int
getLevelFromSource(long p_140899_)
private boolean
havePlayer(long p_140903_)
protected void
onLevelChange(long p_140895_, int p_140896_, int p_140897_)
void
protected void
setLevel(long p_140893_, int p_140894_)
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
-
chunks
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap chunks -
maxDistance
protected final int maxDistance
-
-
Constructor Details
-
FixedPlayerDistanceChunkTracker
protected FixedPlayerDistanceChunkTracker(int p_140891_)
-
-
Method Details
-
getLevel
protected int getLevel(long p_140901_)- Specified by:
getLevel
in classDynamicGraphMinFixedPoint
-
setLevel
protected void setLevel(long p_140893_, int p_140894_)- Specified by:
setLevel
in classDynamicGraphMinFixedPoint
-
onLevelChange
protected void onLevelChange(long p_140895_, int p_140896_, int p_140897_) -
getLevelFromSource
protected int getLevelFromSource(long p_140899_)- Specified by:
getLevelFromSource
in classChunkTracker
-
havePlayer
private boolean havePlayer(long p_140903_) -
runAllUpdates
public void runAllUpdates() -
dumpChunks
-