public static enum TristateResult.Result extends Enum<TristateResult.Result>
Enum Constant and Description |
---|
ALLOW
Forcibly execute the action of this event when it resolves, even if
another condition would normally prevent this event from finishing
normally.
|
DEFAULT
Let the event resolve with its normal behavior, as if the event was
not handled at all.
|
DENY
Disallow the event from resolving.
|
Modifier and Type | Method and Description |
---|---|
static TristateResult.Result |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TristateResult.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TristateResult.Result DENY
Note: Normally, this means cancelling or reverting the default
behavior, but in some cases, especially when TristateResult.hasAllowResult()
is true, this could be default behavior.
public static final TristateResult.Result DEFAULT
Note: This will fall back to the "vanilla" behavior for this event, or the plugin-defined behavior if it was originally created by a plugin.
public static final TristateResult.Result ALLOW
Note that not all events have an overridable behavior,
so TristateResult.hasAllowResult()
should be checked before setting the
result to ALLOW.
public static TristateResult.Result[] values()
for (TristateResult.Result c : TristateResult.Result.values()) System.out.println(c);
public static TristateResult.Result valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null