Esempio n. 1
0
 public void save(File file) {
   try {
     SchematicFormat.MCEDIT.save(clipboard, file);
     NBTStorage storage = new NBTStorage(file, "Schematic");
     storage.load();
     saveRegions(storage.getKey("TaggedRegions"), tags);
     storage.save();
   } catch (IOException e) {
     e.printStackTrace();
   } catch (DataException e) {
     e.printStackTrace();
   }
 }
Esempio n. 2
0
 /**
  * Saves the clipboard data to a .schematic-format file.
  *
  * @param path
  * @throws IOException
  * @throws DataException
  */
 @Deprecated
 public void saveSchematic(File path) throws IOException, DataException {
   SchematicFormat.MCEDIT.save(this, path);
 }