RegistrableCommand

class RegistrableCommand<Source : SharedSuggestionProvider>(val commandBuilder: LiteralCommandBuilder<Source>)(source)

A wrapper around mutable command builders, which makes sure they don't get mutated anymore and can be registered.

Constructors

Link copied to clipboard
constructor(commandBuilder: LiteralCommandBuilder<Source>)

Properties

Functions

Link copied to clipboard
@Environment(value = EnvType.CLIENT)
@JvmName(name = "setupRegistrationCallbackClient")
fun RegistrableCommand<ClientCommandSourceStack>.setupRegistrationCallback()

Register this command (client-side).

Set up a callback which automatically registers this command on server startup.