aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2013-01-02 22:53:55 +0200
committerPerttu Ahola <celeron55@gmail.com>2013-01-02 22:53:55 +0200
commit69bd803a3221bf02672431390e672b0510695254 (patch)
treee5f216cde7b0f401faa31e2530dff6b5f6574708 /doc
parentb7de864f2e2cc7bc45c39c4ce811dbec0aa7f98a (diff)
downloadminetest-69bd803a3221bf02672431390e672b0510695254.tar.gz
minetest-69bd803a3221bf02672431390e672b0510695254.tar.bz2
minetest-69bd803a3221bf02672431390e672b0510695254.zip
Add InvRef:get_location()
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 ebad1dad2..124344cad 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1231,6 +1231,8 @@ methods:
can be fully taken from the list
remove_item(listname, stack): take as many items as specified from the list,
returns the items that were actually removed (as an ItemStack)
+- get_location() -> location compatible to minetest.get_inventory(location)
+ -> {type="undefined"} in case location is not known
ItemStack: A stack of items.
- Can be created via ItemStack(itemstack or itemstring or table or nil)