Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Runtime Docs Version 2.0.77

# ItemFilter - Runtime Docs

## ItemFilter :: table or string

An item filter may be specified in two ways, either as a string which is an item prototype name or as a table.

#### Table fields

name | :: ItemID? | The item.
The item.
quality | :: QualityID? | The quality.
The quality.
comparator | :: ComparatorString? | The quality comparison type.
The quality comparison type.

Concept used in

- LuaControl::get_item_count()
- LuaEntity::get_filter()
- LuaEntity::set_filter()
- LuaEntity::can_set_inventory_filter()
- LuaEntity::get_inventory_filter()
- LuaEntity::set_inventory_filter()
- LuaEntity::splitter_filter
- LuaInventory::get_item_count_filtered()
- LuaInventory::can_set_filter()
- LuaInventory::get_filter()
- LuaInventory::set_filter()
- LuaItemCommon::get_entity_filter()
- LuaItemCommon::set_entity_filter()
- LuaItemCommon::entity_filters
- LuaPlayer::get_quick_bar_slot()
- LuaRecord::get_entity_filter()
- LuaRecord::set_entity_filter()
- LuaRecord::entity_filters
- LuaSurface::create_entity()
- LuaTrain::get_item_count()
- LuaTransportLine::get_item_count()
- BlueprintEntity