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 /doc | |
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 'doc')
-rw-r--r-- | doc/lua_api.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index c7f6908ad..eaca09fe9 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -5254,6 +5254,7 @@ an itemstring, a table or `nil`. * `get_metadata()`: (DEPRECATED) Returns metadata (a string attached to an item stack). * `set_metadata(metadata)`: (DEPRECATED) Returns true. +* `get_description()`: returns the description shown in inventory list tooltips. * `clear()`: removes all items from the stack, making it empty. * `replace(item)`: replace the contents of this stack. * `item` can also be an itemstring or table. |