mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Add InvRef::get/set_lists()
This commit is contained in:
parent
6f6f289db4
commit
bd8ddf1a52
3 changed files with 56 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue