All Methods Static Methods Instance Methods Concrete Methods
Modifier and Type |
Method and Description |
void |
close() |
<T> MessageListener<ChunkTaskPrioritySystem.Task<T>> |
createExecutor(MessageListener<T> executor,
boolean addBlocker) |
static ChunkTaskPrioritySystem.Task<Runnable> |
createMessage(ChunkHolder holder,
Runnable task) |
static ChunkTaskPrioritySystem.Task<Runnable> |
createMessage(Runnable task,
long pos,
IntSupplier lastLevelUpdatedToProvider) |
MessageListener<ChunkTaskPrioritySystem.UnblockingMessage> |
createUnblockingExecutor(MessageListener<Runnable> executor) |
static ChunkTaskPrioritySystem.UnblockingMessage |
createUnblockingMessage(Runnable task,
long pos,
boolean removeTask) |
private <T> void |
enqueueChunk(MessageListener<T> actor,
Function<MessageListener<Unit>,T> task,
long chunkPos,
IntSupplier lastLevelUpdatedToProvider,
boolean addBlocker) |
private <T> void |
enqueueExecution(LevelPrioritizedQueue<Function<MessageListener<Unit>,T>> queue,
MessageListener<T> actor) |
String |
getDebugString() |
private <T> LevelPrioritizedQueue<Function<MessageListener<Unit>,T>> |
getQueue(MessageListener<T> actor) |
private <T> void |
removeChunk(MessageListener<T> actor,
long chunkPos,
Runnable callback,
boolean clearTask) |
void |
updateLevel(ChunkPos pos,
IntSupplier levelGetter,
int targetLevel,
IntConsumer levelSetter) |