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.

Properties

Link copied to clipboard

The lifecycle phase this registry is being collected.

Functions

Link copied to clipboard
open fun register(command: LiteralArgumentBuilder<McBrigadierSource>)
open fun register(command: LiteralCommandNode<McBrigadierSource>)
open fun register(command: LiteralArgumentBuilder<McBrigadierSource>, description: String?)
open fun register(command: LiteralArgumentBuilder<McBrigadierSource>, aliases: Collection<String>)
open fun register(command: LiteralCommandNode<McBrigadierSource>, description: String?)
open fun register(command: LiteralCommandNode<McBrigadierSource>, aliases: Collection<String>)
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.