Apply suggestions from @kske 2
This commit is contained in:
parent
6eb6aedf8e
commit
f077691c47
@ -20,20 +20,4 @@ public interface Callable {
|
|||||||
* @since Envoy Client v0.2-beta
|
* @since Envoy Client v0.2-beta
|
||||||
*/
|
*/
|
||||||
void call(List<String> arguments);
|
void call(List<String> arguments);
|
||||||
|
|
||||||
/**
|
|
||||||
* Performs the instance specific action when a {@link SystemCommand} has been
|
|
||||||
* called and additionally enables the user to execute his own action once it
|
|
||||||
* has been called.
|
|
||||||
*
|
|
||||||
* @param arguments the arguments that should be passed to the
|
|
||||||
* {@link SystemCommand}
|
|
||||||
* @param additionalAction the action to perform when this system command has
|
|
||||||
* been called
|
|
||||||
* @since Envoy Client v0.2-beta
|
|
||||||
*/
|
|
||||||
default void call(List<String> arguments, Runnable additionalAction) {
|
|
||||||
call(arguments);
|
|
||||||
additionalAction.run();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user