You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added py.transfer_stack, py.transfer_stack_to_cursor, py.transfer_cursor_to_stack, and py.transfer_inventory_items (#172)
* Added py.transfer_stack, py.transfer_stack_to_cursor, py.transfer_cursor_to_stack, and py.transfer_inventory_items
also a few luals things that came up
-- all things relating to inventory management and transfers
2
+
3
+
---@paramstackLuaItemStack
4
+
---@returnboolean simple whether or not the stack is simple, in that is has no special data to be managed
5
+
localfunctionis_simple_stack(stack)
6
+
returnnotstack.is_item_with_labeland
7
+
notstack.is_item_with_entity_dataand
8
+
notstack.is_tooland
9
+
notstack.grid
10
+
end
11
+
12
+
---@paramstackLuaItemStack
13
+
---@paraminventoryLuaInventory
14
+
---@paramamount_to_transfer?uint|double maximum amount to transfer, attempts to transfer full stack if omitted. can be specified as number of items or ratio of current stack size
---@paramamount_to_transfer?uint|double maximum amount to transfer, attempts to transfer full stack if omitted. can be specified as number of items or ratio of current stack size
---@paramamount_to_transfer?uint|double maximum amount to transfer, attempts to transfer full stack if omitted. can be specified as number of items or ratio of current stack size
---@paramstack_to_match?LuaItemStack item stack to match. attempts to match quality and name, transfers all items if omitted or no items in the stack
100
+
---@paramamount_to_transfer?uint|double maximum amount to transfer, attempts to transfer full stack if omitted. can be specified as number of items or ratio of current stack size
101
+
---@paramis_supported?function whether the target inventory is supported
0 commit comments