Package net.storm.api.interact.mouse
Interface MouseMovementStrategy
- All Known Implementing Classes:
BezierCurveMouseMovement,DirectMouseMovement,LinearPathMouseMovement
public interface MouseMovementStrategy
Strategy interface for customizing mouse movement behavior during interactions.
Implementations generate a path (sequence of points) that will be executed across
multiple client ticks to avoid blocking the client thread.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRepresents a mouse movement path with configurable execution parameters. -
Method Summary
Modifier and TypeMethodDescriptiongeneratePath(Point current, Point target) Generates a mouse movement path from the current position to the target position.
-
Method Details
-
generatePath
Generates a mouse movement path from the current position to the target position. The path will be executed one point per client tick (or according to pointsPerTick). This method must NOT dispatch any events or block the thread - it should only generate and return the path.- Parameters:
current- The current mouse position (can be null if unknown)target- The target position to move to- Returns:
- A MousePath containing the sequence of points to move through
-