Interface CommandTreeNode.StringParser
-
- All Superinterfaces:
CommandTreeNode<CommandTreeNode.StringParser>
,CommandTreeNode.Argument<CommandTreeNode.StringParser>
- Enclosing interface:
- CommandTreeNode<T extends CommandTreeNode<T>>
public static interface CommandTreeNode.StringParser extends CommandTreeNode.Argument<CommandTreeNode.StringParser>
ACommandTreeNode
that allows for the setting of how a string based parser will behave. By default, this parser will parse the next word, or, if quoted, the quoted string.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.command.registrar.tree.CommandTreeNode
CommandTreeNode.Amount, CommandTreeNode.Argument<T extends CommandTreeNode<T>>, CommandTreeNode.Basic, CommandTreeNode.EntitySelection, CommandTreeNode.NodeFactory, CommandTreeNode.Range<S extends java.lang.Number>, CommandTreeNode.Root, CommandTreeNode.StringParser
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandTreeNode.StringParser
greedy()
Causes this string parser to parse the rest of the supplied string.CommandTreeNode.StringParser
word()
Causes this string parser to only parse the next word.-
Methods inherited from interface org.spongepowered.api.command.registrar.tree.CommandTreeNode
child, child, child, completions, completions, customCompletions, executable, redirect, requires
-
-
-
-
Method Detail
-
word
CommandTreeNode.StringParser word()
Causes this string parser to only parse the next word.- Returns:
- This, for chaining.
-
greedy
CommandTreeNode.StringParser greedy()
Causes this string parser to parse the rest of the supplied string.- Returns:
- This, for chaining.
-
-