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 int
centerSize
private Long2ObjectOpenHashMap<ChunkStatus>
chunkStatuses
private WorldGenerationProgressLogger
progressLogger
private int
radius
private boolean
running
private int
size
private ChunkPos
spawnPos
-
Constructor Summary
Constructors Constructor Description WorldGenerationProgressTracker(int radius)
-
Method Summary
Modifier and Type Method Description int
getCenterSize()
ChunkStatus
getChunkStatus(int x, int z)
int
getProgressPercentage()
int
getSize()
void
setChunkStatus(ChunkPos pos, ChunkStatus status)
void
start()
void
start(ChunkPos spawnPos)
void
stop()
-
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:
start
in interfaceWorldGenerationProgressListener
-
setChunkStatus
- Specified by:
setChunkStatus
in interfaceWorldGenerationProgressListener
-
start
public void start() -
stop
public void stop()- Specified by:
stop
in interfaceWorldGenerationProgressListener
-
getCenterSize
public int getCenterSize() -
getSize
public int getSize() -
getProgressPercentage
public int getProgressPercentage() -
getChunkStatus
-