Class ChunkGenWorker
java.lang.Object
net.minecraftforge.server.command.ChunkGenWorker
- All Implemented Interfaces:
 WorldWorkerManager.IWorker
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerLevelprivate intprivate Booleanprivate longprivate intprivate final CommandSourceStackprivate final intprotected final BlockPosprotected final int - 
Constructor Summary
ConstructorsConstructorDescriptionChunkGenWorker(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleandoWork()Perform a task, returning true from this will have the manager call this function again this tick if there is time left.getStartMessage(CommandSourceStack sender) booleanhasWork() 
- 
Field Details
- 
listener
 - 
start
 - 
total
protected final int total - 
dim
 - 
queue
 - 
notificationFrequency
private final int notificationFrequency - 
lastNotification
private int lastNotification - 
lastNotifcationTime
private long lastNotifcationTime - 
genned
private int genned - 
keepingLoaded
 
 - 
 - 
Constructor Details
- 
ChunkGenWorker
public ChunkGenWorker(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval)  
 - 
 - 
Method Details
- 
buildQueue
 - 
getStartMessage
 - 
hasWork
public boolean hasWork()- Specified by:
 hasWorkin interfaceWorldWorkerManager.IWorker
 - 
doWork
public boolean doWork()Description copied from interface:WorldWorkerManager.IWorkerPerform a task, returning true from this will have the manager call this function again this tick if there is time left. Returning false will skip calling this worker until next tick.- Specified by:
 doWorkin interfaceWorldWorkerManager.IWorker
 
 -