Interface CommandMeta.Builder

  • Enclosing interface:
    CommandMeta

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

      • 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.