query4<T1 extends Component, T2 extends Component, T3 extends Component, T4 extends Component> method

Iterable<WorldEntity<Object>> query4<T1 extends Component, T2 extends Component, T3 extends Component, T4 extends Component>()

Queries entities that have the specified components T1, T2, T3, and T4.

Implementation

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