@Environment(value=CLIENT) public class QueueingWorldGenerationProgressListener extends Object implements WorldGenerationProgressListener
Modifier and Type | Field and Description |
---|---|
private WorldGenerationProgressListener |
progressListener |
private TaskExecutor<Runnable> |
queue |
Constructor and Description |
---|
QueueingWorldGenerationProgressListener(WorldGenerationProgressListener progressListener,
Executor executor) |
Modifier and Type | Method and Description |
---|---|
void |
setChunkStatus(ChunkPos pos,
ChunkStatus status) |
void |
start(ChunkPos spawnPos) |
void |
stop() |
private final WorldGenerationProgressListener progressListener
private final TaskExecutor<Runnable> queue
public QueueingWorldGenerationProgressListener(WorldGenerationProgressListener progressListener, Executor executor)
public void start(ChunkPos spawnPos)
start
in interface WorldGenerationProgressListener
public void setChunkStatus(ChunkPos pos, @Nullable ChunkStatus status)
setChunkStatus
in interface WorldGenerationProgressListener
public void stop()
stop
in interface WorldGenerationProgressListener