McBrigadierRegistry
interface McBrigadierRegistry
Collects brigadier commands to register in the platform's command dispatcher.
This registry is only created at McBrigadierCommandsRegisterEvent and discarded after commands are registered in the platform's command dispatcher.
The event is fired again for every dispatcher rebuild with Phase.RUNTIME.
Commands have to be buildable without runtime state. Resolve anything that depends on the plugin or mod being initialized inside executes bodies.
Types
Link copied to clipboard
At which lifecycle phase a McBrigadierRegistry is collected.
Functions
Link copied to clipboard
open fun register(command: LiteralArgumentBuilder<McBrigadierSource>, description: String?, aliases: Collection<String>)
abstract fun register(command: LiteralCommandNode<McBrigadierSource>, description: String?, aliases: Collection<String>)
Registers a brigadier command.