summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2012-08-20 01:29:56 +0400
committerPerttu Ahola <celeron55@gmail.com>2012-09-01 10:01:41 +0300
commit6a16075912d016926ee0361fb85f9979c119be52 (patch)
tree9f0b589efac5266eb51db71643e174187f83cf3e /doc
parent43ebec2be1949aa5eac127df7cb902d37e4e461b (diff)
downloadminetest-6a16075912d016926ee0361fb85f9979c119be52.tar.gz
minetest-6a16075912d016926ee0361fb85f9979c119be52.tar.bz2
minetest-6a16075912d016926ee0361fb85f9979c119be52.zip
Add InventoryList width property & allow custom crafting grids.
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 8a6ea5dea..88c594eb2 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1118,6 +1118,8 @@ methods:
- is_empty(listname): return true if list is empty
- get_size(listname): get size of a list
- set_size(listname, size): set size of a list
+- get_width(listname): get width of a list
+- set_width(listname, width): set width of list; currently used for crafting
- get_stack(listname, i): get a copy of stack index i in list
- set_stack(listname, i, stack): copy stack to index i in list
- get_list(listname): return full list