mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-22 02:25:53 +01:00
Page:
Clipboard 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
3
Clipboard API
Jesse Boyd edited this page 2017-02-23 15:22:37 +11:00
With FAWE installed, you can register a new ClipboardFormat through the API
// (name of format, aliases...)
ClipboardFormat.addFormat(new AbstractClipboardFormat("CUSTOM", "custom") {
@Override
public ClipboardReader getReader(InputStream inputStream) throws IOException {
return new yourCustomClipboardReader();
}
@Override
public ClipboardWriter getWriter(OutputStream outputStream) throws IOException {
return new yourCustomClipboardWriter();
}
@Override
public boolean isFormat(File file) {
// Return true if this file is using the format (usually just check the extension)
return file.getName().endsWith(".custom");
}
@Override
public String getExtension() {
return "custom";
}
});
The format will then be usable ingame: //schem load <format> <file>
This Wiki is for Legacy Versions (1.8 - 1.12.2). Check here for 1.13+ versions: https://github.com/IntellectualSites/FastAsyncWorldEdit-Documentation/