public class WorldGenerationProgressLogger extends Object implements WorldGenerationProgressListener
| Modifier and Type | Field and Description |
|---|---|
private int |
generatedCount |
private static Logger |
LOGGER |
private long |
nextMessageTime |
private long |
startTime |
private int |
totalCount |
| Constructor and Description |
|---|
WorldGenerationProgressLogger(int radius) |
| Modifier and Type | Method and Description |
|---|---|
int |
getProgressPercentage() |
void |
setChunkStatus(ChunkPos pos,
ChunkStatus status) |
void |
start(ChunkPos spawnPos) |
void |
stop() |
private static final Logger LOGGER
private final int totalCount
private int generatedCount
private long startTime
private long nextMessageTime
public void start(ChunkPos spawnPos)
start in interface WorldGenerationProgressListenerpublic void setChunkStatus(ChunkPos pos, @Nullable ChunkStatus status)
setChunkStatus in interface WorldGenerationProgressListenerpublic void stop()
stop in interface WorldGenerationProgressListenerpublic int getProgressPercentage()