nullOrError

inline fun <T : Component?> Entity.nullOrError(): T

Gets a component of type T from an entity, returning null if T is nullable, or an error otherwise.