hasComponent

@JvmStatic
fun <T : Component> hasComponent(componentClass: Class<T>): EntityQueryCondition

Creates a condition to check if an entity has the component of the specified type.

Return

An EntityQueryCondition instance that encapsulates the condition for checking if an entity has the specified component.

Parameters

T

The type of component to check.

componentClass

The Class object of the component.