Class AsyncPlayerClickMouseEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.input.AsyncModifiedInputEvent
xyz.gmitch215.socketmc.events.input.AsyncPlayerClickMouseEvent
Called when a player clicks or releases a button their mouse.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncPlayerClickMouseEvent
(@NotNull SocketPlayer player, @NotNull MouseButton button, @NotNull Action action, int flags) Constructs a new PlayerClickMouseEvent. -
Method Summary
Methods inherited from class xyz.gmitch215.socketmc.events.input.AsyncModifiedInputEvent
getFlags, isAltPressed, isCapsLockPressed, isCtrlPressed, isNumLockPressed, isShiftPressed, isSuperPressed
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
-
AsyncPlayerClickMouseEvent
public AsyncPlayerClickMouseEvent(@NotNull @NotNull SocketPlayer player, @NotNull @NotNull MouseButton button, @NotNull @NotNull Action action, int flags) Constructs a new PlayerClickMouseEvent.- Parameters:
player
- The player that clicked their mouse.button
- The button that was clicked.action
- The action that was performedflags
- Bitfield for flags of the mouse click
-
-
Method Details
-
getButton
Gets the button that was clicked.- Returns:
- The button that was clicked
-
getAction
Gets the action that was performed.- Returns:
- The action that was performed
-