public static enum BaseCommand.CommandResult extends java.lang.Enum<BaseCommand.CommandResult>
BaseCommand.runCommand(String, BaseCommand.CommandContext)
.
Enum Constant and Description |
---|
BAD_SYNTAX
Command had the wrong arguments passed in.
|
ERROR
Something went wrong while executing the command.
|
SUCCESS
Command ran successfully.
|
WRONG_CONTEXT
Command was used in the wrong context (ex: entering a campaign-only
command in a mission).
|
Modifier and Type | Method and Description |
---|---|
static BaseCommand.CommandResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BaseCommand.CommandResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseCommand.CommandResult SUCCESS
public static final BaseCommand.CommandResult BAD_SYNTAX
public static final BaseCommand.CommandResult WRONG_CONTEXT
public static final BaseCommand.CommandResult ERROR
public static BaseCommand.CommandResult[] values()
for (BaseCommand.CommandResult c : BaseCommand.CommandResult.values()) System.out.println(c);
public static BaseCommand.CommandResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null