You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jesse Boyd edited this page Feb 23, 2017
·
3 revisions
With FAWE installed, you can register a new ClipboardFormat through the API
// (name of format, aliases...)ClipboardFormat.addFormat(newAbstractClipboardFormat("CUSTOM", "custom") {
@OverridepublicClipboardReadergetReader(InputStreaminputStream) throwsIOException {
returnnewyourCustomClipboardReader();
}
@OverridepublicClipboardWritergetWriter(OutputStreamoutputStream) throwsIOException {
returnnewyourCustomClipboardWriter();
}
@OverridepublicbooleanisFormat(Filefile) {
// Return true if this file is using the format (usually just check the extension)returnfile.getName().endsWith(".custom");
}
@OverridepublicStringgetExtension() {
return"custom";
}
});
The format will then be usable ingame: //schem load <format> <file>