public static BuildingSchematic load(File file) { try { CuboidClipboard clipboard = SchematicFormat.MCEDIT.load(file); return new BuildingSchematic(file.getName(), clipboard, loadRegions(file), file); } catch (IOException e) { e.printStackTrace(); } catch (DataException e) { e.printStackTrace(); } return null; }
/** * Load a .schematic file into a clipboard. * * @param path * @return clipboard * @throws DataException * @throws IOException */ @Deprecated public static CuboidClipboard loadSchematic(File path) throws DataException, IOException { return SchematicFormat.MCEDIT.load(path); }