class ChunkTicketManager.DistanceFromNearestPlayerTracker extends ChunkPosDistanceLevelPropagator
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.longs.Long2ByteMap |
distanceFromNearestPlayer |
protected int |
maxDistance |
Modifier | Constructor and Description |
---|---|
protected |
DistanceFromNearestPlayerTracker(int int2) |
Modifier and Type | Method and Description |
---|---|
protected int |
getInitialLevel(long id) |
protected int |
getLevel(long id) |
private boolean |
isPlayerInChunk(long chunkPos) |
protected void |
onDistanceChange(long pos,
int oldDistance,
int distance) |
protected void |
setLevel(long id,
int level) |
void |
updateLevels() |
getPropagatedLevel, isMarker, propagateLevel, recalculateLevel, updateLevel
applyPendingUpdates, hasPendingUpdates, method_24206, method_24208, propagateLevel, removePendingUpdate, resetLevel, updateLevel
protected final it.unimi.dsi.fastutil.longs.Long2ByteMap distanceFromNearestPlayer
protected final int maxDistance
protected DistanceFromNearestPlayerTracker(int int2)
protected int getLevel(long id)
getLevel
in class LevelPropagator
protected void setLevel(long id, int level)
setLevel
in class LevelPropagator
protected void onDistanceChange(long pos, int oldDistance, int distance)
protected int getInitialLevel(long id)
getInitialLevel
in class ChunkPosDistanceLevelPropagator
private boolean isPlayerInChunk(long chunkPos)
public void updateLevels()