on method

Execute on(
  1. Relation relation
)

Updates the executor, selecting entities based on relation to the current executor entity (changing the original executor), without changing execution position, rotation, dimension, and anchor.

Terminates if the executor is not an entity, the relation is not applicable to the current executor entity or there are no entities matching it.

Implementation

Execute on(Relation relation) => _addArgumentRet('on ${relation.name}');