FunctionalCommandBuilder

FunctionalCommand builder class

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun asCommand(): FunctionalCommand

Get the builder as a FunctionalCommand

Link copied to clipboard
fun end(action: Consumer<Boolean>)

Set the end action of the command.

Link copied to clipboard
fun execute(action: Runnable)

Set the execute action of the command.

Link copied to clipboard
fun isFinished(condition: BooleanSupplier)

Set the finishing condition of the command.

Link copied to clipboard
fun requires(vararg requirements: Subsystem)

Add subsystem requirements to the command.

Link copied to clipboard
fun start(action: Runnable)

Set the start action of the command.