has

inline fun <T : Component> has(): Boolean

Checks whether this entity has a component of type T, regardless of it holding data.


inline fun <T : Component> has(kClass: KClass<out T>): Boolean

See also


fun has(component: ComponentId): Boolean

Checks whether this entity has a component, regardless of it holding data.