Package net.storm.api.interact.mouse
Class DirectMouseMovement
java.lang.Object
net.storm.api.interact.mouse.DirectMouseMovement
- All Implemented Interfaces:
MouseMovementStrategy
Default mouse movement strategy that instantly moves the cursor to the target position.
This is the original behavior - sends a single MOUSE_MOVED event directly to the target.
The movement completes in a single client tick.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.storm.api.interact.mouse.MouseMovementStrategy
MouseMovementStrategy.MousePath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongeneratePath(Point current, Point target) Generates a mouse movement path from the current position to the target position.
-
Constructor Details
-
DirectMouseMovement
public DirectMouseMovement()
-
-
Method Details
-
generatePath
Description copied from interface:MouseMovementStrategyGenerates 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.- Specified by:
generatePathin interfaceMouseMovementStrategy- 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
-