Kryzeth Standard Library

StdLib.Data.ItemGroup

supers: StdLib.Data

Wrapper for Factorio item-group prototypes.

Methods5

function ItemGroup.__call(item_group: string) -> item_group StdLib.Data.ItemGroup

Looks up and wraps an item group by name.

Parameters
item_groupstring

Item-group prototype name

Returns
function ItemGroup.count_rows() -> rows nil | integer

Counts the number of visible rows used by this item group. An item subgroup contributes zero rows if it contains no visible entries. Each subgroup contributes one row for 1-10 visible entries. Each subgroup contributes two rows for 11-20 visible entries, etc.

function ItemGroup.get_row_count() -> rows nil | integer
function ItemGroup.count_group_rows() -> rows nil | integer
function ItemGroup.count_placeable_rows(entity_types: string[]) -> rows nil | integer

Counts rows used by visible items that place one of the given entity types.

Parameters
entity_typesstring[]

Entity prototype types

Returns
rowsnil | integer

Fields2

ItemGroup.__class: string = "ItemGroup"
ItemGroup.__index : StdLib.Data