CommandParameterType 5.46.0
Kinds of command parameters advertised to clients (for autocompletion and client-side syntax checks). Independent of the network protocol; the network layer maps them to Bedrock argument types.
Cases
COMMAND_NAME
case COMMAND_NAMEThe name of a command (or alias) the receiving player may use (see CommandParameter::commandName()). The values are filled in per player when the command list is sent.
ENUM
case ENUMOne of a fixed list of keywords (see CommandParameter::enum()).
FLOAT
case FLOATINT
case INTJSON
case JSONMESSAGE
case MESSAGEThe rest of the line as a chat message (selectors in it are expanded).
POSITION
case POSITIONThree coordinates (x y z), each absolute or relative.
POSTFIX
case POSTFIXAn integer followed by a fixed suffix, like Bedrock's "/xp 5L" (see CommandParameter::postfixed()).
RAWTEXT
case RAWTEXTThe rest of the line, as it is.
SOFT_ENUM
case SOFT_ENUMA word with suggested values; other values are accepted too (see CommandParameter::softEnum()).
STRING
case STRINGA single word.
TARGET
case TARGETA target selector or a player name (the client suggests @a, @e, @n, @p, @r, @s and online players).
VALUE
case VALUEA number that may be relative (~ or ~5), like a single coordinate.
