public class ChunkGenWorker extends java.lang.Object implements WorldWorkerManager.IWorker
Modifier and Type | Field and Description |
---|---|
private DimensionType |
dim |
private int |
genned |
private java.lang.Boolean |
keepingLoaded |
private long |
lastNotifcationTime |
private int |
lastNotification |
private CommandSource |
listener |
private int |
notificationFrequency |
private java.util.Queue<BlockPos> |
queue |
protected BlockPos |
start |
protected int |
total |
Constructor and Description |
---|
ChunkGenWorker(CommandSource listener,
BlockPos start,
int total,
DimensionType dim,
int interval) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Queue<BlockPos> |
buildQueue() |
boolean |
doWork()
Perform a task, returning true from this will have the manager call this function again this tick if there is time left.
|
TextComponent |
getStartMessage(CommandSource sender) |
boolean |
hasWork() |
private final CommandSource listener
protected final BlockPos start
protected final int total
private final DimensionType dim
private final java.util.Queue<BlockPos> queue
private final int notificationFrequency
private int lastNotification
private long lastNotifcationTime
private int genned
private java.lang.Boolean keepingLoaded
public ChunkGenWorker(CommandSource listener, BlockPos start, int total, DimensionType dim, int interval)
protected java.util.Queue<BlockPos> buildQueue()
public TextComponent getStartMessage(CommandSource sender)
public boolean hasWork()
hasWork
in interface WorldWorkerManager.IWorker
public boolean doWork()
WorldWorkerManager.IWorker
doWork
in interface WorldWorkerManager.IWorker