Class ArgumentStringArray
java.lang.Object
net.minestom.server.command.builder.arguments.Argument<String[]>
net.minestom.server.command.builder.arguments.ArgumentStringArray
Represents an argument which will take all the remaining of the command.
Example: Hey I am a string
-
Field Summary
Fields inherited from class net.minestom.server.command.builder.arguments.Argument
allowSpace, CONTAINER, suggestionType, useRemaining -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte @Nullable []@NotNull String[]parse(@NotNull CommandSender sender, @NotNull String input) Parses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toTparser()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
-
Constructor Details
-
ArgumentStringArray
-
-
Method Details
-
parse
@NotNull public @NotNull String[] parse(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String input) Description copied from class:ArgumentParses the given input, and throw anArgumentSyntaxExceptionif the input cannot be converted toT -
parser
-
nodeProperties
public byte @Nullable [] nodeProperties()- Overrides:
nodePropertiesin classArgument<String[]>
-
toString
-