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

# Factorio Runtime Docs Version 2.0.77

# EventFilter - Runtime Docs

## EventFilter :: array[union]

Used to filter out irrelevant event callbacks in a performant way.

Filters are always used as an array of filters of a specific type. Every filter can only be used with its corresponding event, and different types of event filters can not be mixed.

#### Union members

LuaSegmentedUnitDiedEventFilter |
LuaScriptRaisedTeleportedEventFilter |
LuaPreRobotMinedEntityEventFilter |
LuaScriptRaisedBuiltEventFilter |
LuaPlatformMinedEntityEventFilter |
LuaRobotBuiltEntityEventFilter |
LuaPrePlayerMinedEntityEventFilter |
LuaEntityDeconstructionCancelledEventFilter |
LuaPreGhostUpgradedEventFilter |
LuaPlatformBuiltEntityEventFilter |
LuaPrePlatformMinedEntityEventFilter |
LuaEntityClonedEventFilter |
LuaPlayerRepairedEntityEventFilter |
LuaPostEntityDiedEventFilter |
LuaScriptRaisedDestroySegmentedUnitEventFilter |
LuaSegmentedUnitDamagedEventFilter |
LuaPreGhostDeconstructedEventFilter |
LuaPlayerMinedEntityEventFilter |
LuaSectorScannedEventFilter |
LuaRobotMinedEntityEventFilter |
LuaEntityMarkedForDeconstructionEventFilter |
LuaPostSegmentedUnitDiedEventFilter |
LuaScriptRaisedReviveEventFilter |
LuaPlayerBuiltEntityEventFilter |
LuaUpgradeCancelledEventFilter |
LuaEntityDamagedEventFilter |
LuaEntityDiedEventFilter |
LuaEntityMarkedForUpgradeEventFilter |
LuaSegmentedUnitCreatedEventFilter |
LuaScriptRaisedDestroyEventFilter |

Concept used in

- LuaBootstrap::on_event()
- LuaBootstrap::set_event_filter()
- LuaBootstrap::get_event_filter()