Class AsyncPlayerScrollMouseEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.input.AsyncPlayerScrollMouseEvent
Called when a player scrolls their mouse.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncPlayerScrollMouseEvent
(@NotNull SocketPlayer player, double xOffset, double yOffset) Constructs a new PlayerScrollMouseEvent. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Gets the x offset of the scroll.double
Gets the y offset of the scroll.Methods inherited from class xyz.gmitch215.socketmc.events.SocketEvent
getHandlerList, getHandlers, getPlayer, getSocketPlayer, toString
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
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.
-