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

# Factorio Runtime Docs Version 2.0.77

# EntityWithQualityID - Runtime Docs

## EntityWithQualityID :: union

An entity prototype with optional quality specification. Can be specified in one of four ways.

#### Union members

LuaEntity | The entity. Both prototype and quality of the entity will be used.
LuaEntityPrototype | The entity prototype. Normal quality will be used.
string | The prototype name. Normal quality will be used.
EntityIDAndQualityIDPair | A table of entity prototype and quality.

Concept used in

- LuaEntity::order_upgrade()
- LuaPlayer::print_entity_statistics()
- LuaPlayer::create_character()
- LuaPlayer::pipette_entity()
- LuaSurface::find_entity()
- FlowStatisticsID