Interface CommandMeta


  • public interface CommandMeta
    Contains metadata for a Command.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  CommandMeta.Builder
      Provides a fluent interface to create CommandMetas.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Collection<String> aliases()
      Returns a non-empty collection containing the case-insensitive aliases used to execute the command.
      Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>> hints()
      Returns an immutable collection containing command nodes that provide additional argument metadata and tab-complete suggestions.
    • Method Detail

      • aliases

        Collection<String> aliases()
        Returns a non-empty collection containing the case-insensitive aliases used to execute the command.
        Returns:
        the command aliases
      • hints

        Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>> hints()
        Returns an immutable collection containing command nodes that provide additional argument metadata and tab-complete suggestions. Note some Command implementations may not support hinting.
        Returns:
        the hinting command nodes