}
@Override
public RecipeYaml load(InputStream in) {
Map<String, Recipe> recipes = new HashMap<String, Recipe>();
YamlConfiguration config = new YamlConfiguration(in);
try {
config.load();
} catch (ConfigurationException ex) {
Spout.getLogger().warning("Unable to load recipes.yml: " + ex.getMessage());
}
ConfigurationNode recipesNode = config.getChild("recipes");
for (String key : recipesNode.getKeys(false)) {
ConfigurationNode recipe = recipesNode.getNode(key);
RecipeBuilder builder = new RecipeBuilder();
builder.setIncludeData(recipe.getNode("includedata") != null && recipe.getNode("includedata").getBoolean());
String[] resultString = recipe.getNode("result").getString().split(",");