API reference / @jsprismarine/brigadier / StringArgumentType
Class: StringArgumentType
Defined in: arguments/StringArgumentType.ts:13
Implements
ArgumentType<string>
Methods
getExamples()
getExamples():
Iterable<string>
Defined in: arguments/StringArgumentType.ts:85
Returns sample strings that CommandNode.findAmbiguities parses against sibling nodes to detect overlapping argument types. The samples cover one bare word, one word with underscores, and one phrase with spaces, so they exercise all three StringType forms.
Returns
Iterable<string>
Implementation of
getType()
getType():
StringType
Defined in: arguments/StringArgumentType.ts:36
Returns
parse()
parse(
reader):string
Defined in: arguments/StringArgumentType.ts:40
Parameters
reader
Returns
string
Implementation of
toString()
toString():
string
Defined in: arguments/StringArgumentType.ts:52
Returns a string representation of an object.
Returns
string
escapeIfRequired()
staticescapeIfRequired(input):String
Defined in: arguments/StringArgumentType.ts:56
Parameters
input
string
Returns
String
getString()
staticgetString<S>(context,name):string
Defined in: arguments/StringArgumentType.ts:32
Type Parameters
S
S
Parameters
context
name
string
Returns
string
greedyString()
staticgreedyString():StringArgumentType
Defined in: arguments/StringArgumentType.ts:28
Returns
StringArgumentType
string()
staticstring():StringArgumentType
Defined in: arguments/StringArgumentType.ts:24
Returns
StringArgumentType
word()
staticword():StringArgumentType
Defined in: arguments/StringArgumentType.ts:20
Returns
StringArgumentType