接口 EntityEventOptions实验性

Contains optional parameters for registering an entity event.

interface EntityEventOptions {
    entities?: Entity[];
    entityTypes?: string[];
}

属性

entities?: Entity[]

If this value is set, this event will only fire for entities that match the entities within this collection.

entityTypes?: string[]

If this value is set, this event will only fire if the impacted entities' type matches this parameter.