public class StringArgumentType extends Object implements ArgumentType<String>
| Modifier and Type | Class and Description |
|---|---|
static class |
StringArgumentType.StringType |
| Modifier and Type | Method and Description |
|---|---|
static String |
escapeIfRequired(String input) |
Collection<String> |
getExamples() |
static String |
getString(CommandContext<?> context,
String name) |
StringArgumentType.StringType |
getType() |
static StringArgumentType |
greedyString() |
String |
parse(StringReader reader) |
static StringArgumentType |
string() |
String |
toString() |
static StringArgumentType |
word() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitlistSuggestionspublic static StringArgumentType word()
public static StringArgumentType string()
public static StringArgumentType greedyString()
public static String getString(CommandContext<?> context, String name)
public StringArgumentType.StringType getType()
public String parse(StringReader reader) throws CommandSyntaxException
parse in interface ArgumentType<String>CommandSyntaxExceptionpublic Collection<String> getExamples()
getExamples in interface ArgumentType<String>Copyright © 2018. All rights reserved.