E - The type of the executorpublic interface ArgumentBuilder<E>
| Modifier and Type | Method and Description |
|---|---|
default <T> ArgumentType<E,T> |
dynamicType(DynamicType.BiParser<E,T> parser)
Create a dynamic parsing argument type.
|
default <T> ArgumentType<E,T> |
dynamicType(DynamicType.SingleParser<T> parser)
Create a dynamic parsing argument type.
|
default LineBuilder<E> |
line() |
default <T> ListNode<E,T> |
list(java.lang.String name,
ArgumentType<E,T> type)
Create a new list argument node.
|
default <T> ListNode<E,T> |
list(java.lang.String name,
java.lang.String description,
ArgumentType<E,T> type)
Create a new list argument node.
|
default StringNode<E> |
string(java.lang.String s)
Create a new string argument node.
|
default StringNode<E> |
string(java.lang.String s,
java.lang.String description)
Create a new string argument node.
|
default StringArrayNode<E> |
stringArray(java.lang.String name,
StringArrayNode.Executor<E> executor)
Create a new string array argument node.
|
default StringArrayNode<E> |
stringArray(java.lang.String name,
StringArrayNode.Executor<E> executor,
StringArrayNode.Completor<E> completor)
Create a new string array argument node.
|
default StringArrayNode<E> |
stringArray(java.lang.String name,
java.lang.String description,
StringArrayNode.Executor<E> executor)
Create a new string array argument node.
|
default StringArrayNode<E> |
stringArray(java.lang.String name,
java.lang.String description,
StringArrayNode.Executor<E> executor,
StringArrayNode.Completor<E> completor)
Create a new string array argument node.
|
default <T> TypedNode<E,T> |
typed(java.lang.String name,
ArgumentType<E,T> type)
Create a new typed argument node.
|
default <T> TypedNode<E,T> |
typed(java.lang.String name,
java.lang.String description,
ArgumentType<E,T> type)
Create a new typed argument node.
|
default StringNode<E> string(java.lang.String s)
ArgumentComparator in the command executor.s - The name of the argumentdefault StringNode<E> string(java.lang.String s, @Nullable java.lang.String description)
ArgumentComparator in the command executor.s - The name of the argumentdescription - The description of the argumentdefault <T> TypedNode<E,T> typed(java.lang.String name, ArgumentType<E,T> type)
ArgumentType.T - The type of the argumentname - The name of the argumenttype - The argument typedefault <T> TypedNode<E,T> typed(java.lang.String name, @Nullable java.lang.String description, ArgumentType<E,T> type)
ArgumentType.T - The type of the argumentname - The name of the argumentdescription - The description of the argumenttype - The argument typedefault <T> ListNode<E,T> list(java.lang.String name, ArgumentType<E,T> type)
ArgumentType.T - The type of the argumentname - The name of the argumenttype - The argument typedefault <T> ListNode<E,T> list(java.lang.String name, @Nullable java.lang.String description, ArgumentType<E,T> type)
ArgumentType.T - The type of the argumentname - The name of the argumentdescription - The description of the argumenttype - The argument typedefault StringArrayNode<E> stringArray(java.lang.String name, StringArrayNode.Executor<E> executor)
name - The name of the argumentexecutor - The executordefault StringArrayNode<E> stringArray(java.lang.String name, StringArrayNode.Executor<E> executor, StringArrayNode.Completor<E> completor)
name - The name of the argumentexecutor - The executorcompletor - The completordefault StringArrayNode<E> stringArray(java.lang.String name, @Nullable java.lang.String description, StringArrayNode.Executor<E> executor)
name - The name of the argumentdescription - The description of the argumentexecutor - The executordefault StringArrayNode<E> stringArray(java.lang.String name, @Nullable java.lang.String description, StringArrayNode.Executor<E> executor, StringArrayNode.Completor<E> completor)
name - The name of the argumentdescription - The description of the argumentexecutor - The executorcompletor - The completordefault <T> ArgumentType<E,T> dynamicType(DynamicType.SingleParser<T> parser)
DynamicType.SingleParser only receives the string reader to parse the argument.T - The type of the parsed argumentparser - The parserdefault <T> ArgumentType<E,T> dynamicType(DynamicType.BiParser<E,T> parser)
DynamicType.BiParser receives the execution context and the string reader to parse the argument.T - The type of the parsed argumentparser - The parserdefault LineBuilder<E> line()