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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    Represents a mouse movement path with configurable execution parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    generatePath(Point current, Point target)
    Generates a mouse movement path from the current position to the target position.
  • Method Details

    • generatePath

      MouseMovementStrategy.MousePath generatePath(Point current, Point target)
      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