Class AsyncPlayerClickButtonEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerElementEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerClickButtonEvent
- Direct Known Subclasses:
AsyncPlayerCycleButtonEvent
,AsyncPlayerToggleCheckboxEvent
Represents an event that is called when a player clicks on a button on a screen.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncPlayerClickButtonEvent
(@NotNull AbstractButton element, @NotNull AbstractScreen screen, @NotNull SocketPlayer player) Creates a new AsyncPlayerClickElementEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the button that was clicked.Methods inherited from class xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
getScreen
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
-
AsyncPlayerClickButtonEvent
public AsyncPlayerClickButtonEvent(@NotNull @NotNull AbstractButton element, @NotNull @NotNull AbstractScreen screen, @NotNull @NotNull SocketPlayer player) Creates a new AsyncPlayerClickElementEvent instance.- Parameters:
element
- The element associated with this eventscreen
- The screen associated with this eventplayer
- The player associated with this event
-
-
Method Details
-
getElement
Gets the button that was clicked.- Overrides:
getElement
in classAsyncPlayerElementEvent
- Returns:
- The button that was clicked
-