Class Progress
java.lang.Object
net.pl3x.map.core.renderer.progress.Progress
- All Implemented Interfaces:
Runnable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
finish()
static @NotNull String
formatMilliseconds
(long time) double
getCPS()
@NotNull String
getETA()
float
@NotNull AtomicLong
@NotNull AtomicLong
long
long
@Nullable World
getWorld()
void
void
run()
void
setProcessedChunks
(long processedChunks) void
setProcessedRegions
(long processedRegions) void
setTotalChunks
(long totalChunks) void
setTotalRegions
(long totalRegions) void
void
start
(long delay) void
stop()
-
Constructor Details
-
Progress
public Progress()
-
-
Method Details
-
start
public void start(long delay) -
stop
public void stop() -
finish
public void finish() -
getWorld
-
setWorld
-
getTotalChunks
public long getTotalChunks() -
setTotalChunks
public void setTotalChunks(long totalChunks) -
getTotalRegions
public long getTotalRegions() -
setTotalRegions
public void setTotalRegions(long totalRegions) -
increment
public void increment() -
getPercent
public float getPercent() -
getCPS
public double getCPS() -
getETA
-
getProcessedChunks
-
setProcessedChunks
public void setProcessedChunks(long processedChunks) -
getProcessedRegions
-
setProcessedRegions
public void setProcessedRegions(long processedRegions) -
run
public void run() -
formatMilliseconds
-