package me.jacobcrofts.simplestructureloader.api;

import me.jacobcrofts.simplestructureloader.util.Selection;

public final class StructureAPI {
	
	private StructureAPI() {}
	
	public static void writeToFile(String path, Selection selection) {
		
	}

}

@@ -44,16 +44,177 @@
 r.api;%0A%0A
+import java.io.FileReader;%0Aimport java.io.FileWriter;%0Aimport java.io.IOException;%0A%0Aimport org.json.simple.JSONObject;%0Aimport org.json.simple.parser.JSONParser;%0A%0A
 import m
@@ -401,15 +401,218 @@
 on) 
-%7B%0A%09%09%0A%09%7D
+throws IOException %7B%0A%09%09FileWriter writer = new FileWriter(path);%0A%09%09writer.write(selection.toJSON().toJSONString());%0A%09%09writer.close();%0A%09%7D%0A%09%0A//%09playerData = (JSONObject) new JSONParser().parse(new FileReader(f));
 %0A%0A%7D%0A

Add feature: API class that writes selection to file