public static interface CommandRegistration.TargetSpec
| Modifier and Type | Method and Description |
|---|---|
CommandRegistration.Builder |
and()
Return a builder for chaining.
|
CommandRegistration.TargetSpec |
consumer(Consumer<CommandContext> consumer)
Register a consumer target.
|
CommandRegistration.TargetSpec |
function(Function<CommandContext,?> function)
Register a function target.
|
CommandRegistration.TargetSpec |
method(Object bean,
Method method)
Register a method target.
|
CommandRegistration.TargetSpec |
method(Object bean,
String method,
Class<?>... paramTypes)
Register a method target.
|
CommandRegistration.TargetSpec method(Object bean, String method, @Nullable Class<?>... paramTypes)
bean - the beanmethod - the methodparamTypes - the parameter typesCommandRegistration.TargetSpec method(Object bean, Method method)
bean - the beanmethod - the methodCommandRegistration.TargetSpec function(Function<CommandContext,?> function)
function - the function to registerCommandRegistration.TargetSpec consumer(Consumer<CommandContext> consumer)
consumer - the consumer to registerCommandRegistration.Builder and()
Copyright © 2023. All rights reserved.