Command Parser
Parses Minecraft command strings, handling quoted arguments, coordinates, and entity selectors.
All methods are pure string operations with no Minecraft dependencies.
Functions
Extracts all coordinate-like tokens from a command string.
Extracts all entity selector tokens from a command string.
Returns true if the argument matches a Minecraft coordinate pattern.
Returns true if the command would be considered destructive (mass kill, fill with air).
Returns true if the argument is a local coordinate (^).
Returns true if the argument is a relative coordinate (~).
Returns true if the argument matches a Minecraft entity selector.
Returns a normalized form of the command (stripped of leading /, collapsed spaces).
Splits an input string into tokens, respecting double and single quotes.
Parses a command string into its base command and arguments.