Package net.minestom.server.command
Interface CommandParser
@Internal
public interface CommandParser
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull CommandParser.Result
parse
(@NotNull CommandSender sender, @NotNull net.minestom.server.command.Graph graph, @NotNull String input) Parses the command by following the graphstatic @NotNull CommandParser
parser()
-
Method Details
-
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 parsinginput
- command string without prefix- Returns:
- the parsed command which can be executed and cached
-