Package net.storm.api.interact
Interface InteractManager
public interface InteractManager
Manages interaction automation and mouse movement strategies.
This interface provides centralized control over how interactions are executed:
- Queuing automated interactions (clicks, menu actions)
- Overriding interaction methods (mouse vs invoke)
- Configuring mouse movement behavior
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the current interaction method override.Deprecated, for removal: This API element is subject to removal in a future version.getQueue()Gets the queue of pending automations.voidqueue(Automation automation) Queues an automation for execution.voidSets the interaction method override.voidsetMouseMovementStrategy(@NotNull MouseMovementStrategy mouseMovementStrategy) Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Details
-
getInteractMethodOverride
InteractMethod getInteractMethodOverride()Gets the current interaction method override.When set, this overrides the default interaction method for all interactions.
- Returns:
- the interaction method override, or null if not set
-
setInteractMethodOverride
Sets the interaction method override.This forces all interactions to use the specified method:
InteractMethod.MOUSE_EVENTS- Use mouse movements and clicksInteractMethod.INVOKE- Directly invoke menu actions
- Parameters:
method- the interaction method to use, or null for automatic
-
queue
Queues an automation for execution.Automations are executed in FIFO order by the interaction system.
- Parameters:
automation- the automation to queue
-
getQueue
Queue<Automation> getQueue()Gets the queue of pending automations.- Returns:
- the automation queue
-
setMouseMovementStrategy
@Deprecated(forRemoval=true) void setMouseMovementStrategy(@NotNull @NotNull MouseMovementStrategy mouseMovementStrategy) Deprecated, for removal: This API element is subject to removal in a future version. -
getMouseMovementStrategy
Deprecated, for removal: This API element is subject to removal in a future version.
-