public class LoggingChunkStatusListener extends java.lang.Object implements IChunkStatusListener
Modifier and Type | Field and Description |
---|---|
private static org.apache.logging.log4j.Logger |
field_219512_a |
private int |
loadedChunks |
private long |
nextLogTime |
private long |
startTime |
private int |
totalChunks |
Constructor and Description |
---|
LoggingChunkStatusListener(int radius) |
Modifier and Type | Method and Description |
---|---|
int |
getPercentDone() |
void |
start(ChunkPos center) |
void |
statusChanged(ChunkPos chunkPosition,
ChunkStatus newStatus) |
void |
stop() |
private static final org.apache.logging.log4j.Logger field_219512_a
private final int totalChunks
private int loadedChunks
private long startTime
private long nextLogTime
public void start(ChunkPos center)
start
in interface IChunkStatusListener
public void statusChanged(ChunkPos chunkPosition, @Nullable ChunkStatus newStatus)
statusChanged
in interface IChunkStatusListener
public void stop()
stop
in interface IChunkStatusListener
public int getPercentDone()