A - The actor typeT - The parameter type@FunctionalInterface
public interface ContextParameter<A extends CommandActor,T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ContextParameter.Factory<A extends CommandActor>
Represents a factory that constructs
ContextParameters dynamically |
| Modifier and Type | Method and Description |
|---|---|
T |
resolve(@NotNull CommandParameter parameter,
@NotNull ExecutionContext<A> context)
Reads input from the given
MutableStringStream, parses the object, or throws
exceptions if needed. |
T resolve(@NotNull @NotNull CommandParameter parameter, @NotNull @NotNull ExecutionContext<A> context)
MutableStringStream, parses the object, or throws
exceptions if needed.parameter - The parametercontext - The command execution context, as well as arguments that have been resolved