map

public final static Unit map(BooleanSupplier condition, Command commands)

Maps a condition to commands. If the condition returns true, the commands are scheduled. A command can be mapped to multiple conditions.


public final static Unit map(BooleanSupplier condition, Runnable runnable)

Maps a condition to a runnable. If the condition returns true, a command is scheduled. A command can be mapped to multiple conditions.