ListenerCommand
constructor( command: Command = emptyCommand(), onInit: Runnable = Runnable {}, onExecute: Runnable = Runnable {}, onEnd: Consumer<Boolean> = Consumer<Boolean> {})
Parameters
command
the command to be run.
onInit
the action to run when this command initializes.
onExecute
the action to run whenever this command updates.
onEnd
the action to run when this command is ended. Takes in whether it was interrupted as a parameter.