Module net.minestom.server
Class ArgumentString
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<String>
net.minestom.server.command.builder.arguments.ArgumentString
Argument which will take a quoted string.
Example: "Hey I am a string"
-
Field Summary
FieldsFields inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, suggestionType, useRemaining
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte @Nullable []
parse
(CommandSender sender, String input) Parses the given input, and throw anArgumentSyntaxException
if the input cannot be converted toT
parser()
static String
staticParse
(String input) Deprecated.toString()
Methods inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, equals, filter, getCallback, getDefaultValue, getId, getSuggestionCallback, hasErrorCallback, hashCode, hasSuggestion, isOptional, map, map, parse, setCallback, setDefaultValue, setDefaultValue, setDefaultValue, setSuggestionCallback, suggestionType, useRemaining
-
Field Details
-
QUOTE_ERROR
public static final int QUOTE_ERROR- See Also:
-
-
Constructor Details
-
ArgumentString
-
-
Method Details
-
parse
Description copied from class:Argument
Parses the given input, and throw anArgumentSyntaxException
if the input cannot be converted toT
- Specified by:
parse
in classArgument<String>
- Parameters:
input
- the argument to parse- Returns:
- the parsed argument
- Throws:
ArgumentSyntaxException
- ifvalue
is not valid
-
parser
-
nodeProperties
public byte @Nullable [] nodeProperties()- Overrides:
nodeProperties
in classArgument<String>
-
staticParse
Deprecated.- Throws:
ArgumentSyntaxException
-
toString
-
Argument.parse(CommandSender, Argument)