class ChunkTicketManager.NearbyChunkTicketUpdater extends ChunkTicketManager.DistanceFromNearestPlayerTracker
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.longs.Long2IntMap |
distances |
private it.unimi.dsi.fastutil.longs.LongSet |
positionsAffected |
private int |
watchDistance |
distanceFromNearestPlayer, maxDistance
Modifier | Constructor and Description |
---|---|
protected |
NearbyChunkTicketUpdater(int int2) |
Modifier and Type | Method and Description |
---|---|
private boolean |
isWithinViewDistance(int distance) |
protected void |
onDistanceChange(long pos,
int oldDistance,
int distance) |
void |
setWatchDistance(int watchDistance) |
void |
updateLevels() |
private void |
updateTicket(long pos,
int distance,
boolean oldWithinViewDistance,
boolean withinViewDistance) |
getInitialLevel, getLevel, setLevel
getPropagatedLevel, isMarker, propagateLevel, recalculateLevel, updateLevel
applyPendingUpdates, getPendingUpdateCount, hasPendingUpdates, propagateLevel, removePendingUpdate, removePendingUpdateIf, resetLevel, updateLevel
private int watchDistance
private final it.unimi.dsi.fastutil.longs.Long2IntMap distances
private final it.unimi.dsi.fastutil.longs.LongSet positionsAffected
protected void onDistanceChange(long pos, int oldDistance, int distance)
onDistanceChange
in class ChunkTicketManager.DistanceFromNearestPlayerTracker
public void setWatchDistance(int watchDistance)
private void updateTicket(long pos, int distance, boolean oldWithinViewDistance, boolean withinViewDistance)
public void updateLevels()
updateLevels
in class ChunkTicketManager.DistanceFromNearestPlayerTracker
private boolean isWithinViewDistance(int distance)