has<T extends Component> method

bool has<T extends Component>()

Whether this entity has a component of type T.

Implementation

bool has<T extends Component>() => world._hasComponent<T>(this);