Class ChunkGenWorker
java.lang.Object
net.minecraftforge.server.command.ChunkGenWorker
- All Implemented Interfaces:
WorldWorkerManager.IWorker
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ServerWorld
private int
private Boolean
private long
private int
private final CommandSource
private final int
protected final BlockPos
protected final int
-
Constructor Summary
ConstructorDescriptionChunkGenWorker
(CommandSource listener, BlockPos start, int total, ServerWorld 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
(CommandSource 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(CommandSource listener, BlockPos start, int total, ServerWorld 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
-