类 ChunkGenWorker
java.lang.Object
net.minecraftforge.server.command.ChunkGenWorker
- 所有已实现的接口:
WorldWorkerManager.IWorker
-
字段概要
字段修饰符和类型字段说明private final ServerLevel
private int
private long
private int
private final CommandSourceStack
private final int
protected final BlockPos
protected final int
-
构造器概要
构造器构造器说明ChunkGenWorker
(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval) -
方法概要
修饰符和类型方法说明boolean
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()
-
字段详细资料
-
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
-
-
构造器详细资料
-
ChunkGenWorker
public ChunkGenWorker(CommandSourceStack listener, BlockPos start, int total, ServerLevel dim, int interval)
-
-
方法详细资料
-
buildQueue
-
getStartMessage
-
hasWork
public boolean hasWork()- 指定者:
hasWork
在接口中WorldWorkerManager.IWorker
-
doWork
public boolean doWork()从接口复制的说明: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.- 指定者:
doWork
在接口中WorldWorkerManager.IWorker
-