def try_component(self, entity: int, component_type: Type):
if component_type in self._entities[entity]:<EOL><INDENT>yield self._entities[entity][component_type]<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Try to get a single component type for an Entity.

        This method will return the requested Component if it exists, but
        will pass silently if it does not. This allows a way to access optional
        Components that may or may not exist.

        :param entity: The Entity ID to retrieve the Component for.
        :param component_type: The Component instance you wish to retrieve.
        :return: A iterator containg the single Component instance requested,
                 which is empty if the component doesn't exist.