aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2019-08-24 12:38:02 -0400
committersfan5 <sfan5@live.de>2019-08-24 18:38:02 +0200
commit008b80fe1ca9d46610b8971e2ac92fb56da8e69f (patch)
tree581fb878e5b5afe163c12dfc926158b9f0e5b0a8 /doc
parentefbac7e4466ebc576b2cc64b5b782c61136cde66 (diff)
downloadhax-minetest-server-008b80fe1ca9d46610b8971e2ac92fb56da8e69f.tar.gz
hax-minetest-server-008b80fe1ca9d46610b8971e2ac92fb56da8e69f.zip
Add ItemStack:get_description() to get tooltip (#8847)
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt1
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.