Package net.ME1312.Galaxi.Engine
Class CommandParser
java.lang.Object
net.ME1312.Galaxi.Command.CommandProcessor
net.ME1312.Galaxi.Engine.CommandParser
GalaxiEngine Command Parser Class
-
Nested Class Summary
Nested classes/interfaces inherited from class net.ME1312.Galaxi.Command.CommandProcessor
CommandProcessor.Status
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomplete
(CommandSender sender, CommandParser.Parsed command) Complete a commandabstract CommandParser.Parsed
parseCommand
(String command) Parses a commandabstract CommandProcessor.Status
runCommand
(CommandSender sender, CommandParser.Parsed command) Run a commandMethods inherited from class net.ME1312.Galaxi.Command.CommandProcessor
complete, escapeArguments, escapeArguments, escapeCommand, escapeCommand, runCommand
-
Constructor Details
-
CommandParser
public CommandParser()
-
-
Method Details
-
complete
Complete a command- Parameters:
command
- Parsed Command- Returns:
- Auto Completions
-
runCommand
public abstract CommandProcessor.Status runCommand(CommandSender sender, CommandParser.Parsed command) Run a command- Parameters:
sender
- Command Sendercommand
- Parsed Command- Returns:
- Whether the command was run
-
parseCommand
Parses a command- Parameters:
command
- Command- Returns:
- Parsed Command
-