diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-01-02 03:18:23 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-01-02 03:18:23 +0200 |
commit | cb88f7b6d4c863e9ae986df14a457dc8355830cb (patch) | |
tree | 68e2874d55a35db9e885cb141819db97979ec65f | |
parent | 9425fb8192cedf34044de40faafd9c2eb1bbd70d (diff) | |
download | minetest-cb88f7b6d4c863e9ae986df14a457dc8355830cb.tar.gz minetest-cb88f7b6d4c863e9ae986df14a457dc8355830cb.tar.bz2 minetest-cb88f7b6d4c863e9ae986df14a457dc8355830cb.zip |
Clean up InvRef documentation in default/init.lua a bit
-rw-r--r-- | data/mods/default/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 948c9a199..47bdafd71 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -212,9 +212,9 @@ -- - 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 @@ -224,7 +224,7 @@ -- - 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 |