@Internal
public interface CommandParser
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionparse
(CommandSender sender, net.minestom.server.command.Graph graph, String input) Parses the command by following the graphstatic CommandParser
parser()
-
Method Details
-
parser
-
parse
@Contract("_, _ -> new") CommandParser.Result parse(CommandSender sender, net.minestom.server.command.Graph graph, 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
-