Answers for "schematic worldedit api"

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 paste schematic

try (EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1)) {
    Operation operation = new ClipboardHolder(clipboard)
            .createPaste(editSession)
            .to(BlockVector3.at(x, y, z))
            .ignoreAirBlocks(false)
            .build();
    Operations.complete(operation);
}
Posted by: Guest on August-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language