Modern Lua Plugins: ide-helper: core_namespace.lua improvements. LG-1978, LORD-68

This commit is contained in:
alek13
2025-10-01 10:37:20 +03:00
parent 7e9fb601bb
commit 8353863965
2 changed files with 92 additions and 49 deletions

View File

@@ -62,9 +62,9 @@ function InvRef:add_item(list_name, stack) end
function InvRef:room_for_item(list_name, stack) end
--- returns true if the stack of items can be fully taken from the list
--- @overload fun(list_name:string, stack:ItemStack):boolean
--- @param list_name string
--- @param stack ItemStack|ItemStackString
--- @param match_meta boolean If `match_meta` is false, only the items' names are compared (default: `false`).
--- @param list_name string
--- @param stack ItemStack|ItemStackString
--- @param match_meta? boolean If `match_meta` is false, only the items' names are compared (default: `false`).
--- @return boolean
function InvRef:contains_item(list_name, stack, match_meta) end