Enum Magic.CastOutcome
- All Implemented Interfaces:
Serializable,Comparable<Magic.CastOutcome>,java.lang.constant.Constable
- Enclosing class:
Magic
What happened to a cast's target click. Only DISPATCHED and POSTED_UNCONFIRMED count as sent.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe invoker sent the target click (SENT or PENDING).The invoker attempted the target click and it errored.The caller was interrupted (Stop) before the target click.The target cannot be addressed (no player, no menu identifier).The target click was queued but its outcome could not be waited for (EDT, client thread, timeout).A gate held the target click;Magic.CastResult.gate()names it.The spell click went out but the client never took the selection.The book could not be shown (overlay, no magic tab, or the tab did not open in time).No spellbook entry of that name.PrivBot could not perform the click;Magic.CastResult.gate()carries the reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic Magic.CastOutcomeReturns the enum constant of this type with the specified name.static Magic.CastOutcome[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DISPATCHED
The invoker sent the target click (SENT or PENDING). -
POSTED_UNCONFIRMED
The target click was queued but its outcome could not be waited for (EDT, client thread, timeout). -
REFUSED
A gate held the target click;Magic.CastResult.gate()names it. -
FAILED
The invoker attempted the target click and it errored. -
UNREACHABLE
PrivBot could not perform the click;Magic.CastResult.gate()carries the reason. -
NO_TARGET_ID
The target cannot be addressed (no player, no menu identifier). Nothing was sent. -
SELECT_NOT_APPLIED
The spell click went out but the client never took the selection. No target was sent. -
UNKNOWN_SPELL
No spellbook entry of that name. -
SPELLBOOK_UNAVAILABLE
The book could not be shown (overlay, no magic tab, or the tab did not open in time). -
INTERRUPTED
The caller was interrupted (Stop) before the target click.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-