diff options
author | Paul Ouellette <oue.paul18@gmail.com> | 2019-08-24 12:38:02 -0400 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2019-08-24 18:38:02 +0200 |
commit | 008b80fe1ca9d46610b8971e2ac92fb56da8e69f (patch) | |
tree | 581fb878e5b5afe163c12dfc926158b9f0e5b0a8 /src/inventory.h | |
parent | efbac7e4466ebc576b2cc64b5b782c61136cde66 (diff) | |
download | minetest-008b80fe1ca9d46610b8971e2ac92fb56da8e69f.tar.gz minetest-008b80fe1ca9d46610b8971e2ac92fb56da8e69f.tar.bz2 minetest-008b80fe1ca9d46610b8971e2ac92fb56da8e69f.zip |
Add ItemStack:get_description() to get tooltip (#8847)
Diffstat (limited to 'src/inventory.h')
-rw-r--r-- | src/inventory.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inventory.h b/src/inventory.h index 95a0bb43e..3f299993a 100644 --- a/src/inventory.h +++ b/src/inventory.h @@ -47,6 +47,8 @@ struct ItemStack // Returns the string used for inventory std::string getItemString() const; + // Returns the tooltip + std::string getDescription(IItemDefManager *itemdef) const; /* Quantity methods |