A - The command of their business logicpublic static class Command.Parser<A> extends java.lang.Object implements Command<A>
This command:
/label <int> <string>
can be represented:
record MyCommand(Integer a, String b)
Command.argument(MyCommand::new, intArg, strArg);
Command.Mapping,
CommandCommand.Mapping<A>, Command.Parser<A>| Constructor and Description |
|---|
Parser(java.util.function.Function<java.util.List<java.lang.String>,Tuple2<Option<A>,java.util.List<java.lang.String>>> parser,
java.util.List<Argument<?>> arguments,
java.lang.String description,
java.lang.String permission) |
| Modifier and Type | Method and Description |
|---|---|
<B> Command.Parser<B> |
map(java.util.function.Function<? super A,? extends B> f) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitargument, argument, argument, argument, argument, argument, argument, argument, getEntries, mapping, pair, parse, parseO, parseWithIndex, present, tabComplete, tabComplete, tabCompleteWithIndexpublic <B> Command.Parser<B> map(java.util.function.Function<? super A,? extends B> f)