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 int
generatedCount
private static Logger
LOGGER
private long
nextMessageTime
private long
startTime
private int
totalCount
-
Constructor Summary
Constructors Constructor Description WorldGenerationProgressLogger(int radius)
-
Method Summary
Modifier and Type Method Description int
getProgressPercentage()
void
setChunkStatus(ChunkPos pos, ChunkStatus status)
void
start(ChunkPos spawnPos)
void
stop()
-
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:
start
in interfaceWorldGenerationProgressListener
-
setChunkStatus
- Specified by:
setChunkStatus
in interfaceWorldGenerationProgressListener
-
stop
public void stop()- Specified by:
stop
in interfaceWorldGenerationProgressListener
-
getProgressPercentage
public int getProgressPercentage()
-