Interface CommandParser


@Internal @Experimental public interface CommandParser
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(@NotNull CommandSender sender, @NotNull net.minestom.server.command.Graph graph, @NotNull String input)
    Parses the command by following the graph
    static @NotNull CommandParser
     
  • Method Details

    • parser

      @NotNull static @NotNull CommandParser parser()
    • parse

      @Contract("_, _ -> new") @NotNull @NotNull CommandParser.Result parse(@NotNull @NotNull CommandSender sender, @NotNull @NotNull net.minestom.server.command.Graph graph, @NotNull @NotNull String input)
      Parses the command by following the graph
      Parameters:
      graph - structure to use for parsing
      input - command string without prefix
      Returns:
      the parsed command which can be executed and cached