typed-factorio 1.10.2 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -14882,6 +14882,11 @@ interface LuaInventory extends ReadonlyArray<LuaItemStack> {
|
|
14882
14882
|
* @see {@link https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.is_empty Online documentation}
|
14883
14883
|
*/
|
14884
14884
|
is_empty(): boolean
|
14885
|
+
/**
|
14886
|
+
* Is every stack in this inventory full? Ignores stacks blocked by the current bar.
|
14887
|
+
* @see {@link https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.is_full Online documentation}
|
14888
|
+
*/
|
14889
|
+
is_full(): boolean
|
14885
14890
|
/**
|
14886
14891
|
* Get counts of all items in this inventory.
|
14887
14892
|
* @returns The counts, indexed by item names.
|
@@ -14959,9 +14964,10 @@ interface LuaInventory extends ReadonlyArray<LuaItemStack> {
|
|
14959
14964
|
/**
|
14960
14965
|
* Counts the number of empty stacks.
|
14961
14966
|
* @param include_filtered If true, filtered slots will be included. Defaults to false.
|
14967
|
+
* @param include_bar If true, slots blocked by the current bar will be included. Defaults to true.
|
14962
14968
|
* @see {@link https://lua-api.factorio.com/latest/LuaInventory.html#LuaInventory.count_empty_stacks Online documentation}
|
14963
14969
|
*/
|
14964
|
-
count_empty_stacks(include_filtered?: boolean): uint
|
14970
|
+
count_empty_stacks(include_filtered?: boolean, include_bar?: boolean): uint
|
14965
14971
|
/**
|
14966
14972
|
* Gets the number of the given item that can be inserted into this inventory.
|
14967
14973
|
* @param item The item to check.
|