@Environment(value=CLIENT) public class WorldGenerationProgressTracker extends Object implements WorldGenerationProgressListener
Modifier and Type | Field and Description |
---|---|
private int |
centerSize |
private it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<ChunkStatus> |
chunkStatuses |
private WorldGenerationProgressLogger |
progressLogger |
private int |
radius |
private boolean |
running |
private int |
size |
private ChunkPos |
spawnPos |
Constructor and Description |
---|
WorldGenerationProgressTracker(int radius) |
Modifier and Type | Method and Description |
---|---|
int |
getCenterSize() |
ChunkStatus |
getChunkStatus(int x,
int z) |
int |
getProgressPercentage() |
int |
getSize() |
void |
setChunkStatus(ChunkPos pos,
ChunkStatus status) |
void |
start() |
void |
start(ChunkPos spawnPos) |
void |
stop() |
private final WorldGenerationProgressLogger progressLogger
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<ChunkStatus> chunkStatuses
private ChunkPos spawnPos
private final int centerSize
private final int radius
private final int size
private boolean running
public void start(ChunkPos spawnPos)
start
in interface WorldGenerationProgressListener
public void setChunkStatus(ChunkPos pos, @Nullable ChunkStatus status)
setChunkStatus
in interface WorldGenerationProgressListener
public void start()
public void stop()
stop
in interface WorldGenerationProgressListener
public int getCenterSize()
public int getSize()
public int getProgressPercentage()
@Nullable public ChunkStatus getChunkStatus(int x, int z)