ClientStringArgumentType

Client-command string arguments. Prefer these over Brigadier com.mojang.brigadier.arguments.StringArgumentType.word / string() so unquoted tokens are not limited to the ASCII identifier whitelist.

greedyString() is unchanged: it already consumes the remainder of the line as-is.

Functions

Link copied to clipboard
fun string(): ArgumentType<String>

One token: a quoted string (quotes stripped, escapes honored) or an unquoted readUnquotedToken.

Link copied to clipboard
fun word(): ArgumentType<String>

One unquoted token. Quotes are literal characters, not grouping.