use of com.sk89q.worldedit.extent.clipboard.io.ClipboardReader in project Skree by Skelril.
the class WEDecorator method getHolder.
private ClipboardHolder getHolder(String resourceName, WorldData worldData) throws IOException {
try (InputStream bis = Files.newInputStream(getFile(resourceName))) {
ClipboardReader reader = ClipboardFormat.SCHEMATIC.getReader(bis);
Clipboard clipboard = reader.read(worldData);
return new ClipboardHolder(clipboard, worldData);
}
}
Aggregations