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 [2019/07/29 15:21] – [Some actual examples] Fix syntax errors i509vcb | tutorial:commands [2019/07/29 19:03] – Removed references to internals pyrofab | ||
---|---|---|---|
Line 8: | Line 8: | ||
If you just want to see how to register commands you've come to the right place here. | If you just want to see how to register commands you've come to the right place here. | ||
- | Registering commands is done through | + | Registering commands is done through '' |
The register method specifies two arguments, the dedicated flag and a consumer representing the CommandDispatcher. These methods should be placed in your mod's initalizer. | The register method specifies two arguments, the dedicated flag and a consumer representing the CommandDispatcher. These methods should be placed in your mod's initalizer. | ||
Line 17: | Line 17: | ||
<code java> | <code java> | ||
- | CommandRegistryImpl.INSTANCE.register(false, | + | CommandRegistry.INSTANCE.register(false, |
CommandRegistry.INSTANCE.register(false, | CommandRegistry.INSTANCE.register(false, |
tutorial/commands.txt · Last modified: 2024/02/23 14:22 by allen1210