getComponentFor

abstract fun getComponentFor(entity: Entity, componentId: ComponentId): Component?

Gets a componentId's data from an entity or null if not present/the component doesn't hold any data.