Class ChunkGenWorker
java.lang.Object
net.minecraftforge.server.command.ChunkGenWorker
- All Implemented Interfaces:
- WorldWorkerManager.IWorker
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ServerLevelprivate intprivate Booleanprivate longprivate intprivate final CommandSourceStackprivate final intprotected final BlockPosprotected final int
- 
Constructor SummaryConstructorsConstructorDescriptionChunkGenWorker(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval) 
- 
Method SummaryModifier 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
- 
totalprotected final int total
- 
dim
- 
queue
- 
notificationFrequencyprivate final int notificationFrequency
- 
lastNotificationprivate int lastNotification
- 
lastNotifcationTimeprivate long lastNotifcationTime
- 
gennedprivate int genned
- 
keepingLoaded
 
- 
- 
Constructor Details- 
ChunkGenWorkerpublic ChunkGenWorker(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval) 
 
- 
- 
Method Details- 
buildQueue
- 
getStartMessage
- 
hasWorkpublic boolean hasWork()- Specified by:
- hasWorkin interface- WorldWorkerManager.IWorker
 
- 
doWorkpublic 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 interface- WorldWorkerManager.IWorker
 
 
-