pub enum Arg {
}Expand description
Argument type for a command parameter.
Determines how the argument is parsed, validated, and presented in client-side tab-completion (Brigadier tree).
Variants§
Boolean
Boolean (true/false). Parser ID 0.
Double
64-bit floating point number. Parser ID 2.
Integer
64-bit integer. Parser ID 3.
String
Free-form single-word string. Parser ID 5, mode SINGLE_WORD.
Entity
Entity selector (@a, @p, @r, @e, @s) or player name. Parser ID 6.
GameProfile
Game profile (player name with tab-completion). Parser ID 7.
BlockPos
Block position (integer coordinates, supports ~). Parser ID 42.
ColumnPos
Column position (x z integers). Parser ID 43.
Vec3
3D coordinates (supports ~ and ^). Parser ID 40.
Vec2
2D coordinates (x z, supports ~ and ^). Parser ID 41.
BlockState
Block state (e.g., stone, oak_planks[axis=x]). Parser ID 44.
ItemStack
Item stack (e.g., diamond_sword{Damage:10}). Parser ID 46.
Message
Chat message (like GreedyString but with @mention support). Parser ID 48.
Component
JSON text component. Parser ID 10.
ResourceLocation
Resource location (namespace:path). Parser ID 35.
Uuid
UUID. Parser ID 11.
Rotation
Yaw and pitch rotation. Parser ID 39.
Options(Vec<String>)
Fixed set of choices with tab-completion. Uses string parser
with minecraft:ask_server suggestions.
Player
Player name — tab-completes with connected player names.
Uses minecraft:game_profile parser (ID 7).