FunctionalCommand
class FunctionalCommand @JvmOverloads constructor(var init: Runnable = Runnable {}, var execute: Runnable = Runnable {}, var end: Consumer<Boolean> = Consumer {}, var isFinished: BooleanSupplier = BooleanSupplier { false }, var isInterruptable: Boolean = true, var requirements: Set<Component> = emptySet()) : Command
A command whose properties can be defined externally. Useful for making simple inline commands or combining commands together.
Constructors
Link copied to clipboard
constructor(init: Runnable = Runnable {}, execute: Runnable = Runnable {}, end: Consumer<Boolean> = Consumer {}, isFinished: BooleanSupplier = BooleanSupplier { false }, isInterruptable: Boolean = true, vararg requirements: Component)
Properties
Functions
Link copied to clipboard
Runs repeatedly until isFinished returns true.
Link copied to clipboard
Returns whether this command is finished.