Class AsyncPlayerScrollMouseEvent

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

public class AsyncPlayerScrollMouseEvent extends SocketEvent
Called when a player scrolls their mouse.
  • Constructor Details

    • AsyncPlayerScrollMouseEvent

      public AsyncPlayerScrollMouseEvent(@NotNull @NotNull SocketPlayer player, double xOffset, double yOffset)
      Constructs a new PlayerScrollMouseEvent.
      Parameters:
      player - The player that scrolled their mouse.
      xOffset - The x offset of the scroll.
      yOffset - The y offset of the scroll.
  • Method Details

    • getXOffset

      public double getXOffset()
      Gets the x offset of the scroll.
      Returns:
      The x offset of the scroll along the x-axis.
    • getYOffset

      public double getYOffset()
      Gets the y offset of the scroll.
      Returns:
      The y offset of the scroll along the y-axis.