classpublicPriority 3
ChunkTracker
com.hypixel.hytale.server.core.modules.entity.player.ChunkTracker
implements Component
25
Methods
25
Public Methods
13
Fields
2
Constructors
Constants
intMAX_CHUNKS_PER_SECOND= 36
intMAX_CHUNKS_PER_SECOND_LAN= 128
intMAX_CHUNKS_PER_SECOND_LOCAL= 256
intMAX_CHUNKS_PER_TICK= 4
longMAX_FAILURE_BACKOFF_NANOS= TimeUnit.SECONDS.toNanos(10L)
intMAX_HOT_LOADED_CHUNKS_RADIUS= 8
MetricsRegistry<ChunkTracker>METRICS_REGISTRY= new MetricsRegistry<ChunkTracker>()
.register("ViewRadius", tracker -> tracker.chunkViewRad...
intMIN_LOADED_CHUNKS_RADIUS= 2
Constructors
private
ChunkTracker(ChunkTracker other)public
ChunkTracker()Methods
Public Methods (25)
public
void clear()public
Component<EntityStore> clone()@Nonnull@Override
public
void copyFrom(ChunkTracker chunkTracker)public
ChunkTracker.ChunkVisibility getChunkVisibility(long indexChunk)publicstatic
ComponentType<EntityStore, ChunkTracker> getComponentType()public
int getLoadedChunksCount()public
String getLoadedChunksDebug()@Nonnull
public
Message getLoadedChunksMessage()@Nonnull
public
int getLoadingChunksCount()public
int getMaxChunksPerSecond()public
int getMaxChunksPerTick()public
int getMaxHotLoadedChunksRadius()public
int getMinLoadedChunksRadius()public
boolean isLoaded(long indexChunk)public
boolean isReadyForChunks()public
void removeForReload(long indexChunk)public
void setDefaultMaxChunksPerSecond(PlayerRef playerRef)public
void setMaxChunksPerSecond(int maxChunksPerSecond)public
void setMaxChunksPerTick(int maxChunksPerTick)public
void setMaxHotLoadedChunksRadius(int maxHotLoadedChunksRadius)public
void setMinLoadedChunksRadius(int minLoadedChunksRadius)public
void setReadyForChunks(boolean readyForChunks)public
boolean shouldBeVisible(long chunkCoordinates)public
void tick(Ref<EntityStore> playerRef, float dt, CommandBuffer<EntityStore> commandBuffer)public
void unloadAll(PlayerRef playerRefComponent)Fields
Private/Package Fields (13)
private
float accumulatorprivate
int chunkViewRadiusprivate
int hotRadiusprivate
float inverseMaxChunksPerSecondprivate
int lastChunkXprivate
int lastChunkZprivate
int maxChunksPerSecondprivate
int maxChunksPerTickprivate
int maxHotLoadedChunksRadiusprivate
int minLoadedChunksRadiusprivate
boolean readyForChunksprivate
int sentViewRadiusprivate
TransformComponent transformComponent