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
      java.util.Collection<java.lang.String> getAliases()
      Returns a non-empty collection containing the case-insensitive aliases used to execute the command.
      java.util.Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>> getHints()
      Returns a collection containing command nodes that provide additional argument metadata and tab-complete suggestions.
    • Method Detail

      • getAliases

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

        java.util.Collection<com.mojang.brigadier.tree.CommandNode<CommandSource>> getHints()
        Returns a 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