Package net.minecraft.server
Class WorldGenerationProgressLogger
java.lang.Object
net.minecraft.server.WorldGenerationProgressLogger
- All Implemented Interfaces:
WorldGenerationProgressListener
public class WorldGenerationProgressLogger extends Object implements WorldGenerationProgressListener
-
Field Summary
Fields Modifier and Type Field Description private intgeneratedCountprivate static LoggerLOGGERprivate longnextMessageTimeprivate longstartTimeprivate inttotalCount -
Constructor Summary
Constructors Constructor Description WorldGenerationProgressLogger(int radius) -
Method Summary
Modifier and Type Method Description intgetProgressPercentage()voidsetChunkStatus(ChunkPos pos, ChunkStatus status)voidstart(ChunkPos spawnPos)voidstop()
-
Field Details
-
LOGGER
-
totalCount
private final int totalCount -
generatedCount
private int generatedCount -
startTime
private long startTime -
nextMessageTime
private long nextMessageTime
-
-
Constructor Details
-
WorldGenerationProgressLogger
public WorldGenerationProgressLogger(int radius)
-
-
Method Details
-
start
- Specified by:
startin interfaceWorldGenerationProgressListener
-
setChunkStatus
- Specified by:
setChunkStatusin interfaceWorldGenerationProgressListener
-
stop
public void stop()- Specified by:
stopin interfaceWorldGenerationProgressListener
-
getProgressPercentage
public int getProgressPercentage()
-