[{"data":1,"prerenderedAt":150},["ShallowReactive",2],{"docs-\u002Frecipes":3},{"id":4,"title":5,"body":6,"description":140,"extension":141,"meta":142,"navTitle":143,"navigation":144,"path":145,"rawbody":146,"seo":147,"stem":148,"__hash__":149},"docs\u002Frecipes\u002Findex.md","Recipes",{"type":7,"value":8,"toc":130},"minimark",[9,13,18,27,31,50,62,66,69,79,83,90,96,100,111,119,123],[10,11,5],"h1",{"id":12},"recipes",[14,15,17],"h2",{"id":16},"embed-magicutils-in-a-fabric-mod","Embed MagicUtils In A Fabric Mod",[19,20,21,22,26],"p",{},"Use ",[23,24,25],"code",{},"include(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.1\")","\nand avoid installing the standalone bundle on the server.",[14,28,30],{"id":29},"share-a-single-bundle-on-a-server","Share A Single Bundle On A Server",[19,32,33,34,37,38,41,42,45,46,49],{},"Install ",[23,35,36],{},"magicutils-fabric-bundle"," in ",[23,39,40],{},"mods\u002F"," and use ",[23,43,44],{},"modImplementation","\nwithout ",[23,47,48],{},"include(...)",".",[19,51,52,53],{},"Download link:\n",[54,55,59],"a",{"href":56,"rel":57},"https:\u002F\u002Fmaven.theroer.dev\u002Freleases\u002Fdev\u002Fua\u002Ftheroer\u002Fmagicutils-fabric-bundle\u002F1.27.1\u002Fmagicutils-fabric-bundle-1.27.1.jar",[58],"nofollow",[23,60,61],{},"magicutils-fabric-bundle-1.27.1.jar",[14,63,65],{"id":64},"register-the-built-in-help-command","Register The Built-In Help Command",[19,67,68],{},"Bukkit or Fabric:",[70,71,77],"pre",{"className":72,"code":74,"language":75,"meta":76},[73],"language-java","registry.registerCommand(new HelpCommand(logger, registry));\n","java","",[23,78,74],{"__ignoreMap":76},[14,80,82],{"id":81},"add-help-as-a-subcommand","Add Help As A Subcommand",[19,84,85,86,89],{},"Use this pattern when you want help attached to an existing command tree or on\nplatforms without a dedicated ",[23,87,88],{},"HelpCommand"," wrapper:",[70,91,94],{"className":92,"code":93,"language":75,"meta":76},[73],"registry.registerCommand(new MyCommand()\n        .addSubCommand(HelpCommandSupport.createHelpSubCommand(\n                \"help\",\n                loggerCore,\n                registry::commandManager\n        )));\n",[23,95,93],{"__ignoreMap":76},[14,97,99],{"id":98},"force-a-config-format","Force A Config Format",[19,101,102,103,106,107,110],{},"Create ",[23,104,105],{},"\u003Cconfig>.format"," next to the file or ",[23,108,109],{},"magicutils.format"," in the root\nconfig directory with a single line:",[70,112,117],{"className":113,"code":115,"language":116,"meta":76},[114],"language-text","jsonc\n","text",[23,118,115],{"__ignoreMap":76},[14,120,122],{"id":121},"add-enum-suggestions","Add Enum Suggestions",[19,124,125,126,129],{},"Enum parameters are auto-suggested. You can additionally limit visible choices\nvia ",[23,127,128],{},"@Suggest(\"{one,two}\")"," for a specific argument.",{"title":76,"searchDepth":131,"depth":131,"links":132},3,[133,135,136,137,138,139],{"id":16,"depth":134,"text":17},2,{"id":29,"depth":134,"text":30},{"id":64,"depth":134,"text":65},{"id":81,"depth":134,"text":82},{"id":98,"depth":134,"text":99},{"id":121,"depth":134,"text":122},"Practical MagicUtils recipes and copy-paste examples for common tasks across configuration, commands, logging, lang, and placeholders.","md",{},null,true,"\u002Frecipes","---\ntitle: Recipes\ndescription: Practical MagicUtils recipes and copy-paste examples for common tasks across configuration, commands, logging, lang, and placeholders.\n---\n\n# Recipes\n\n## Embed MagicUtils In A Fabric Mod\n\nUse `include(\"dev.ua.theroer:magicutils-fabric-bundle:1.27.1\")`\nand avoid installing the standalone bundle on the server.\n\n## Share A Single Bundle On A Server\n\nInstall `magicutils-fabric-bundle` in `mods\u002F` and use `modImplementation`\nwithout `include(...)`.\n\nDownload link:\n[`magicutils-fabric-bundle-1.27.1.jar`](https:\u002F\u002Fmaven.theroer.dev\u002Freleases\u002Fdev\u002Fua\u002Ftheroer\u002Fmagicutils-fabric-bundle\u002F1.27.1\u002Fmagicutils-fabric-bundle-1.27.1.jar)\n\n## Register The Built-In Help Command\n\nBukkit or Fabric:\n\n```java\nregistry.registerCommand(new HelpCommand(logger, registry));\n```\n\n## Add Help As A Subcommand\n\nUse this pattern when you want help attached to an existing command tree or on\nplatforms without a dedicated `HelpCommand` wrapper:\n\n```java\nregistry.registerCommand(new MyCommand()\n        .addSubCommand(HelpCommandSupport.createHelpSubCommand(\n                \"help\",\n                loggerCore,\n                registry::commandManager\n        )));\n```\n\n## Force A Config Format\n\nCreate `\u003Cconfig>.format` next to the file or `magicutils.format` in the root\nconfig directory with a single line:\n\n```text\njsonc\n```\n\n## Add Enum Suggestions\n\nEnum parameters are auto-suggested. You can additionally limit visible choices\nvia `@Suggest(\"{one,two}\")` for a specific argument.\n",{"title":5,"description":140},"recipes\u002Findex","KehN3OFAUIkgVkm_lBmItggwmGARK9i2Of-820NERrM",1783944487211]