Brigadier

From Minecraft Wiki
Jump to: navigation, search
Information icon.svg
This feature is exclusive to Java Edition.
Brigadier
Latest version

1.0.17

GitHub repository

brigadier

Written in

Java

Author

Mojang AB

License

MIT License

Nathan Adams Mojang avatar.png

I’m so proud of that name! Brigadier is the name of the command engine that Minecraft uses.

Dinnerbone on Brigadier[1]

Brigadier is a command parser and dispatcher, designed and developed for Minecraft: Java Edition,[2] mainly maintained by Dinnerbone.[3] It is the first library used by Java Edition that Mojang has released under an open-source license. [4]

Usage[edit]

Brigadier is used for parsing and executing string commands.

Features[edit]

  • Define command nodes with argument or literal branches
  • Modify/fork command source in command contexts
  • Active inspection on command parsing[6]
  • Listing all possible commands from current command node[7]
  • Handle command result real-time on execution success/failure
  • Recursive command node redirection
    • /execute run redirects to the root node of the vanilla command dispatcher

History[edit]

October 25, 2014Dinnerbone mentions Brigadier in the comments on MC-10880.
July 27, 2017Dinnerbone discloses a non-obfuscated command parser library called "brigadier".
Java Edition
1.1317w45aCommands are now handled with Brigadier.
Minecraft introduces Brigadier as a dependency.
September 26, 2018Brigadier is open sourced under the MIT License.[8]
1.1419w08aAllows single quotes for strings in commands.[9]

Gallery[edit]


References[edit]