tutorial:commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:commands [2020/06/14 04:55] – [Sorry for the mess] i509vcb | tutorial:commands [2020/06/14 05:13] – Refactor FAQ section i509vcb | ||
---|---|---|---|
Line 212: | Line 212: | ||
CommandManager is in '' | CommandManager is in '' | ||
- | ===== Advanced concepts ===== | + | ====== Advanced concepts |
Below are links to the articles about more complex concepts used in brigadier. | Below are links to the articles about more complex concepts used in brigadier. | ||
Line 595: | Line 595: | ||
} | } | ||
</ | </ | ||
- | ===== FAQ ===== | + | ====== FAQ ====== |
- | === What else can I send feedback to the CommandSource? | + | ===== Why does my command not compile ===== |
- | You use the Text classes (LiteralText, | + | There are two immediate possibilities for why this could occur. |
- | === Why does my IDE complain saying that a method executed by my command needs to catch or throw a CommandSyntaxException === | + | ==== Catch or throw a CommandSyntaxException |
- | The solution to this is just to make the methods throw a CommandSyntaxException. | + | The solution to this issue is to make the run or suggest |
- | === Can I register commands in runtime? | + | ==== Issues with generics ==== |
- | You can do this but it is not reccomended. You would get the instance of the CommandManager and add anything | + | You may have an issue with generic types once in a while. Verify |
- | After that you will need to send the command tree to every player again using '' | + | ===== Can I register client side commands? ===== |
- | === Can I unregister | + | Fabric doesn' |
- | You can also do this but it is very unstable and could cause unwanted side effects. Lets just say it involves a bunch of Reflection. | + | ===== Dark Arts ===== |
- | Once again you will need to send the command tree to every player again using '' | + | A few things we don't recommend, but are possible. |
- | === Can I register | + | ==== Can I register commands |
- | Well Fabric currently doesn' | + | You can do this but it is not recommended. You would get the '' |
- | https:// | + | |
+ | After that you need to send the command tree to every player again using '' | ||
+ | |||
+ | ==== Can I unregister | ||
+ | |||
+ | You can also do this, however it is much less stable than registering commands |
tutorial/commands.txt · Last modified: 2024/02/23 14:22 by allen1210