Class AsyncPlayerMoveMouseEvent

java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.input.AsyncPlayerMoveMouseEvent

public class AsyncPlayerMoveMouseEvent extends SocketEvent
Called when a player moves their mouse. This method will not fire if getNewX() / getNewY()'s offset off of their old values is less than 10.
  • Constructor Details

    • AsyncPlayerMoveMouseEvent

      public AsyncPlayerMoveMouseEvent(@NotNull @NotNull SocketPlayer player, double newX, double newY)
      Constructs a new PlayerMoveMouseEvent.
      Parameters:
      player - The player that moved their mouse
      newX - The new x position of the mouse
      newY - The new y position of the mouse
  • Method Details

    • getNewX

      public double getNewX()
      Gets the new x position of the mouse.
      Returns:
      The new x position of the mouse
    • getNewY

      public double getNewY()
      Gets the new y position of the mouse.
      Returns:
      The new y position of the mouse