mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-22 02:25:53 +01:00
Page:
AsyncWorld
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
7
AsyncWorld
Jesse Boyd edited this page 2018-03-01 15:38:38 +11:00
Table of Contents
The AsyncWorld implements the Bukkit World interface and allows you to asynchronously access or make changes to the world.
- Most objects obtained from an instance can be used async (location, block, chunk etc.)
- Only block and biome manipulation is optimized for the queue
- Other operations will be slower when used async
- You can use
AsyncWorld.create(...)
to load a world async
Note: The AsyncWorld class is only present in FastAsyncWorldEdit-bukkit
, not the API.
TaskManager.IMP.async(new Runnable() {
@Override
public void run() {
// Create or load a world async with the provided WorldCreator settings
AsyncWorld world = AsyncWorld.create(new WorldCreator("MyWorld"));
// AsyncWorld world = AsyncWorld.wrap(bukkitWorld); // Or wrap existing world
Block block = world.getBlockAt(0, 0, 0);
block.setType(Material.BEDROCK);
// When you are done
world.commit();
}
});
Notes on async performance
https://github.com/boy0001/FastAsyncWorldedit/wiki/Notes-on-async-performance And: https://github.com/boy0001/FastAsyncWorldedit/wiki/Fawe-TaskManager#sync-task
This Wiki is for Legacy Versions (1.8 - 1.12.2). Check here for 1.13+ versions: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/