diff options
author | RealBadAngel <mk@realbadangel.pl> | 2013-03-04 01:55:16 +0100 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-03-05 23:32:33 -0500 |
commit | 5af8acfa6e41e258dd7e2135e8e75f03096c1d5c (patch) | |
tree | ab819388ec6be2e9ae683aeed223257b966e36f7 /src/craftdef.h | |
parent | ba78194636a9a498f6979cc21cd39399f23d658a (diff) | |
download | minetest-5af8acfa6e41e258dd7e2135e8e75f03096c1d5c.tar.gz minetest-5af8acfa6e41e258dd7e2135e8e75f03096c1d5c.tar.bz2 minetest-5af8acfa6e41e258dd7e2135e8e75f03096c1d5c.zip |
Added method to get all registered recipes for item(node)
Diffstat (limited to 'src/craftdef.h')
-rw-r--r-- | src/craftdef.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/craftdef.h b/src/craftdef.h index eb3cd7e39..14dc53003 100644 --- a/src/craftdef.h +++ b/src/craftdef.h @@ -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; |