query2<T1 extends Component, T2 extends Component> method

Iterable<WorldEntity<Object>> query2<T1 extends Component, T2 extends Component>()

Queries entities that have both the specified components T1 and T2.

Implementation

Iterable<WorldEntity> query2<T1 extends Component, T2 extends Component>() {
  return query([
    withComponent<T1>,
    withComponent<T2>,
  ]);
}