From 008b80fe1ca9d46610b8971e2ac92fb56da8e69f Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Sat, 24 Aug 2019 12:38:02 -0400 Subject: Add ItemStack:get_description() to get tooltip (#8847) --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') 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. -- cgit v1.2.3