Class StringArgumentType
java.lang.Object
com.mojang.brigadier.arguments.StringArgumentType
- All Implemented Interfaces:
ArgumentType<String>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringstatic StringescapeIfRequired(String input) static StringgetString(CommandContext<?> context, String name) getType()static StringArgumentTypeparse(StringReader reader) static StringArgumentTypestring()toString()static StringArgumentTypeword()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ArgumentType
listSuggestions, parse
-
Field Details
-
type
-
-
Constructor Details
-
StringArgumentType
-
-
Method Details
-
word
-
string
-
greedyString
-
getString
-
getType
-
parse
- Specified by:
parsein interfaceArgumentType<String>- Throws:
CommandSyntaxException
-
toString
-
getExamples
- Specified by:
getExamplesin interfaceArgumentType<String>
-
escapeIfRequired
-
escape
-