Package net.minecraft.client.gui
Class WorldGenerationProgressTracker
java.lang.Object
net.minecraft.client.gui.WorldGenerationProgressTracker
- All Implemented Interfaces:
WorldGenerationProgressListener
@Environment(CLIENT) public class WorldGenerationProgressTracker extends Object implements WorldGenerationProgressListener
-
Field Summary
Fields Modifier and Type Field Description private intcenterSizeprivate Long2ObjectOpenHashMap<ChunkStatus>chunkStatusesprivate WorldGenerationProgressLoggerprogressLoggerprivate intradiusprivate booleanrunningprivate intsizeprivate ChunkPosspawnPos -
Constructor Summary
Constructors Constructor Description WorldGenerationProgressTracker(int radius) -
Method Summary
Modifier and Type Method Description intgetCenterSize()ChunkStatusgetChunkStatus(int x, int z)intgetProgressPercentage()intgetSize()voidsetChunkStatus(ChunkPos pos, ChunkStatus status)voidstart()voidstart(ChunkPos spawnPos)voidstop()
-
Field Details
-
progressLogger
-
chunkStatuses
-
spawnPos
-
centerSize
private final int centerSize -
radius
private final int radius -
size
private final int size -
running
private boolean running
-
-
Constructor Details
-
WorldGenerationProgressTracker
public WorldGenerationProgressTracker(int radius)
-
-
Method Details
-
start
- Specified by:
startin interfaceWorldGenerationProgressListener
-
setChunkStatus
- Specified by:
setChunkStatusin interfaceWorldGenerationProgressListener
-
start
public void start() -
stop
public void stop()- Specified by:
stopin interfaceWorldGenerationProgressListener
-
getCenterSize
public int getCenterSize() -
getSize
public int getSize() -
getProgressPercentage
public int getProgressPercentage() -
getChunkStatus
-