Interface CommandMeta.Builder

Enclosing interface:
CommandMeta

public static interface CommandMeta.Builder
Provides a fluent interface to create CommandMetas.
  • Method Details

    • aliases

      CommandMeta.Builder aliases(String... aliases)
      Specifies additional aliases that can be used to execute the command.
      Parameters:
      aliases - the command aliases
      Returns:
      this builder, for chaining
    • hint

      CommandMeta.Builder hint(com.mojang.brigadier.tree.CommandNode<CommandSource> node)
      Specifies a command node providing additional argument metadata and tab-complete suggestions.
      Parameters:
      node - the command node
      Returns:
      this builder, for chaining
      Throws:
      IllegalArgumentException - if the node is executable, i.e. has a non-null Command, or has a redirect.
    • plugin

      CommandMeta.Builder plugin(Object plugin)
      Specifies the plugin who registers the Command.
      Parameters:
      plugin - the registering plugin
      Returns:
      this builder, for chaining
    • build

      CommandMeta build()
      Returns a newly-created CommandMeta based on the specified parameters.
      Returns:
      the built CommandMeta