-
Notifications
You must be signed in to change notification settings - Fork 226
Jobs API
Something sorta exists resembling a Job API.
This class is a queue of local queues. Each local queue is a queue of chunk changes, and may have an associated EditSession which may have an associated player.
The SetQueue will track active and inactive queues:
// Active queues are finished queuing
Collection<FaweQueue> active = SetQueue.IMP.getActiveQueues();
// Inactive queues may still be queueing chunk changes or doing something
Collection<FaweQueue> inactive = SetQueue.IMP.getInactiveQueues();
Collection<FaweQueue> all = SetQueue.IMP.getAllQueues();
You can get the EditSessions currently running for a player:
FawePlayer#getTrackedSessions
.
From each EditSession you can get the changed blocks: EditSession#getLimitUsed
, though this does not necessarily correspond to the current blocks in the queue (as the queue empties as it's dispatching.
Or from the FaweQueue (EditSession#getQueue
), you can get the active chunks: FaweQueue#getFaweChunks
, then each active chunk can be cast to a CharFaweChunk
and use CharFaweChunk#getTotalCount
Simply use EditSession#cancel
after obtaining the correct EditSession.
This wiki is outdated, move to https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/
This Wiki is for Legacy Versions (1.8 - 1.12.2). Check here for 1.13+ versions: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/