Answers for "worldedit api load schematic"

0

worldedit api load schematic

ClipboardFormat format = ClipboardFormats.findByFile(file);
try (ClipboardReader reader = format.getReader(new FileInputStream(file))) {
   Clipboard clipboard = reader.read();
}
Posted by: Guest on August-16-2021
0

worldedit api save schematic

try (ClipboardWriter writer = BuiltInClipboardFormat.SPONGE_SCHEMATIC.getWriter(new FileOutputStream(file))) {
    writer.write(clipboard);
}
Posted by: Guest on August-16-2021

Code answers related to "worldedit api load schematic"

Browse Popular Code Answers by Language