Class ChunkGenWorker
java.lang.Object
net.minecraftforge.server.command.ChunkGenWorker
- All Implemented Interfaces:
WorldWorkerManager.IWorker
-
Field Summary
Modifier and TypeFieldDescriptionprivate ServerLevel
private int
private Boolean
private long
private int
private CommandSourceStack
private int
protected BlockPos
protected int
-
Constructor Summary
ConstructorDescriptionChunkGenWorker(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
doWork()
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)
boolean
hasWork()
-
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:
hasWork
in interfaceWorldWorkerManager.IWorker
-
doWork
public boolean doWork()Description copied from interface:WorldWorkerManager.IWorker
Perform 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:
doWork
in interfaceWorldWorkerManager.IWorker
-