Add definable node_stone to biome API, mgv5, mgv7. Reduce and correct depth of mgv7...
[oweals/minetest.git] / src / craftdef.h
index a2258c6e84b9a65d9ef7e6b8516043bc6e72eab0..14dc530031ba4eaa834eb49ccfc08e112ae3cd63 100644 (file)
@@ -1,6 +1,6 @@
 /*
-Minetest-c55
-Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
+Minetest
+Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU Lesser General Public License as published by
@@ -358,6 +358,8 @@ public:
                        bool decrementInput, IGameDef *gamedef) const=0;
        virtual bool getCraftRecipe(CraftInput &input, CraftOutput &output,
                        IGameDef *gamedef) const=0;
+       virtual std::vector<CraftDefinition*> getCraftRecipes(CraftOutput &output,
+                       IGameDef *gamedef) const=0;
        
        // Print crafting recipes for debugging
        virtual std::string dump() const=0;
@@ -376,6 +378,8 @@ public:
                        bool decrementInput, IGameDef *gamedef) const=0;
        virtual bool getCraftRecipe(CraftInput &input, CraftOutput &output,
                        IGameDef *gamedef) const=0;
+       virtual std::vector<CraftDefinition*> getCraftRecipes(CraftOutput &output, 
+                       IGameDef *gamedef) const=0;
 
        // Print crafting recipes for debugging
        virtual std::string dump() const=0;