mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-22 02:25:53 +01:00
Page:
Progress API
Pages
API
Anvil API
AsyncWorld
Brushes
Clipboard API
Commands
Configuration
Copying a region to another world.
CreateFromImage
Download Instructions: Bukkit Spigot
Fawe TaskManager
FawePlayer
FaweQueue
Home
JavaScript API
Jobs API
Light API
NBT stream API
Packet sending
Pasting a schematic
Permissions
Progress API
Recovering corrupt NBT files (MCA Schematic etc.)
Region restriction API
Registering Custom Masks, Patterns and Transforms
Registering custom brushes or commands
Rollback API
Some tips when using the FAWE API
TaskBuilder
TextureUtil block and biome coloring
Third party loggers
Transforms
Web API
WorldEdit FAWE mask list
WorldEdit EditSession
WorldEdit World Player
WorldEdit and FAWE patterns
2
Progress API
Jesse Boyd edited this page 2017-02-23 15:09:34 +11:00
Note, If you want to process EditSession changes instead, use the EditSession event instead:
- wiki.sk89q.com/wiki/WorldEdit/API/Hooking_EditSession
- For that you need to be added in the FAWE config
extent.allowed-plugins
orSettings.EXTENT.ALLOWED_PLUGINS
Tracking the progress of an EditSession, or queue is simple:
editSession.getQueue().setProgressTracker(new RunnableVal2<ProgressType, Integer>() {
@Override
public void run(ProgressType type, Integer amount) {
// FAWE can start on the queue before the full size is known
switch (type) {
case QUEUE:
// <amount> chunks are in the queue
case DISPATCH:
// <amount> chunks left in the queue
case DONE:
// The queue is empty (finishing up)
}
}
});
To use the default progress tracker (titles) see: https://github.com/boy0001/FastAsyncWorldedit/blob/master/core/src/main/java/com/boydti/fawe/object/progress/DefaultProgressTracker.java
Notifications for the default are only given if > 64 chunks are queued (up to 4,194,304 blocks), since otherwise it finishes too quickly to be useful, though you can do whatever you like with a custom tracker.
This Wiki is for Legacy Versions (1.8 - 1.12.2). Check here for 1.13+ versions: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/