Package net.storm.api.interact
Enum Class InteractMethod
- All Implemented Interfaces:
Serializable,Comparable<InteractMethod>,Constable
Defines the available methods for executing game interactions.
The interaction method determines how actions are sent to the game engine:
INVOKE- Direct method invocation, bypassing mouse simulationMOUSE_EVENTS- Simulates realistic mouse events including movement and clicks
The interaction method can be overridden globally via InteractManager.setInteractMethodOverride(InteractMethod)
or per-interaction via
.
invalid reference
AutomatedMenu#getInteractMethod()
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDirect invocation of menu actions.Simulated mouse event interactions. -
Method Summary
Modifier and TypeMethodDescriptionstatic InteractMethodReturns the enum constant of this class with the specified name.static InteractMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVOKE
Direct invocation of menu actions.This method directly invokes the game's menu action handler without simulating any mouse input. It is faster but may be less realistic than mouse-based interactions.
-
MOUSE_EVENTS
Simulated mouse event interactions.This method generates synthetic mouse events (movement and clicks) to trigger menu actions. The mouse movement behavior is controlled by the configured
MouseMovementStrategy.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-