select

public final static SelectCommand select(Component requirements, Supplier<Command> command)

Creates a SelectCommand out of the provided command. Note that requirements must be explicitly specified, as the SelectCommand is uncertain of what requirements it will have before being scheduled.