get

inline fun <T : Component> get(): T?

Gets a component of type T on this entity.


inline fun <T : Component> get(kClass: KClass<out T>): T?

See also


fun get(component: ComponentId): Component?

Gets a component which holds data from this entity. Use has if the component is not to hold data.