]> git.lizzy.rs Git - minetest.git/commitdiff
Clean up InvRef documentation in default/init.lua a bit
authorPerttu Ahola <celeron55@gmail.com>
Mon, 2 Jan 2012 01:18:23 +0000 (03:18 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 2 Jan 2012 01:18:23 +0000 (03:18 +0200)
data/mods/default/init.lua

index 948c9a19956fdde2c872d142741ca5ccd7a0dbdb..47bdafd71513e61372fecab4f9f41d46cec409d2 100644 (file)
 -- - inventory_get_list(name) -> {item1, item2, ...}
 -- - get_look_dir(): get camera direction as a unit vector
 -- - get_look_pitch(): pitch in radians
---
 -- - get_look_yaw(): yaw in radians (wraps around pretty randomly as of now)
--- InvRef
+--
+-- InvRef methods:
 -- - get_size(listname): get size of a list
 -- - set_size(listname, size): set size of a list
 -- - get_stack(listname, i): get a copy of stack index i in list
 -- - autoinsert_stack(listname, stack): insert stack somewhere in list
 -- - autoinsert_stackstring(listname, stackstring)
 --
--- ItemStack
+-- ItemStack methods:
 -- - peek_item(): return item from stack without removing it
 -- - take_item(): remove item from stack and return it
 -- - put_item(item): put item in stack; return false if not possible