summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-01-04 19:07:30 -0500
committerShadowNinja <shadowninja@minetest.net>2014-01-11 13:52:26 -0500
commitbd8ddf1a526c57648028bbee192d92e1289219ac (patch)
tree15e578b02176d579e2d1f9a35110e3f10e85d94c /doc
parent6f6f289db4a14045b1053b065e9bbac3d3cb0f33 (diff)
downloadminetest-bd8ddf1a526c57648028bbee192d92e1289219ac.tar.gz
minetest-bd8ddf1a526c57648028bbee192d92e1289219ac.tar.bz2
minetest-bd8ddf1a526c57648028bbee192d92e1289219ac.zip
Add InvRef::get/set_lists()
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 4e73136de..afb142513 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1761,6 +1761,8 @@ methods:
- set_stack(listname, i, stack): copy stack to index i in list
- get_list(listname): return full list
- set_list(listname, list): set full list (size will not change)
+- get_lists(): returns list of inventory lists
+- set_lists(lists): sets inventory lists (size will not change)
- add_item(listname, stack): add item somewhere in list, returns leftover ItemStack
- room_for_item(listname, stack): returns true if the stack of items
can be fully added to the list