This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace calls to GameRegistry.addShapeless/ShapedRecipe with these methods, which will dump it to a json in your dir of choice | |
// Also works with OD, replace GameRegistry.addRecipe(new ShapedOreRecipe/ShapelessOreRecipe with the same calls | |
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create(); | |
private static File RECIPE_DIR = null; | |
private static final Set<String> USED_OD_NAMES = new TreeSet<>(); | |
private static void setupDir() { | |
if (RECIPE_DIR == null) { | |
RECIPE_DIR = ConfigurationHandler.configuration.getConfigFile().toPath().resolve("../recipes/").toFile(); |