StdLib.Data.Item
Wrapper for Factorio item-like prototypes.
Methods12
function Item.__call(t, ...) -> any
function Item.get_place_result() -> entity StdLib.Data.Entity
Gets the entity placed by this item.
function Item.add_fuel_category(category_name: string) -> self
Adds a fuel category to this item.
Parameters
category_namestringFuel category name
Returns
- self
function Item.add_fuel_cat(category_name: string) -> self
Parameters
category_namestringFuel category name
Returns
- self
function Item.add_fuel_categories(category_list: string[]) -> self
Adds multiple fuel categories to this item.
Parameters
category_liststring[]Fuel categories to add
Returns
- self
function Item.add_fuel_cats(category_list: string[]) -> self
Parameters
category_liststring[]Fuel categories to add
Returns
- self
function Item.remove_fuel_category(category_name: string) -> self
Removes a fuel category from this item.
Parameters
category_namestringFuel category name
Returns
- self
function Item.rem_fuel_cat(category_name: string) -> self
Parameters
category_namestringFuel category name
Returns
- self
function Item.remove_fuel_categories(category_list: string[]) -> self
Removes multiple fuel categories from this item.
Parameters
category_liststring[]Fuel categories to remove
Returns
- self
function Item.rem_fuel_cats(category_list: string[]) -> self
Parameters
category_liststring[]Fuel categories to remove
Returns
- self
function Item.add_to_labs(lab_names: string | string[] | nil) -> self
Adds this item to the inputs of selected labs.
Parameters
lab_namesstring | string[] | nilLab name or names; all labs when omitted
Returns
- self
function Item.remove_from_labs(lab_names: string | string[] | nil) -> self
Removes this item from the inputs of selected labs.
Parameters
lab_namesstring | string[] | nilLab name or names; all labs when omitted
Returns
- self
Fields6
Item.place_result : nil | string
Item.place_as_tile : PlaceAsTile | nil
Item.place_as_equipment_result : nil | string
Item.fuel_categories : string[] | nil
Item.__class: string = "Item"
Item.__index : StdLib.Data