Enum Class InteractMethod

java.lang.Object
java.lang.Enum<InteractMethod>
net.storm.api.interact.InteractMethod
All Implemented Interfaces:
Serializable, Comparable<InteractMethod>, Constable

public enum InteractMethod extends Enum<InteractMethod>
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 simulation
  • MOUSE_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:
  • Enum Constant Details

    • INVOKE

      public static final InteractMethod 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

      public static final InteractMethod 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

      public static InteractMethod[] 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

      public static InteractMethod valueOf(String name)
      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 name
      NullPointerException - if the argument is null