Class AsyncPlayerElementEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerElementEvent
- Direct Known Subclasses:
AsyncPlayerClickButtonEvent
,AsyncPlayerEditTextEvent
Represents an event that is called when a player interacts with an element on a screen.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionAsyncPlayerElementEvent
(@NotNull AbstractWidget element, @NotNull AbstractScreen screen, @NotNull SocketPlayer player) Creates a new AsyncPlayerElementEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the element associated with this event.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
-
AsyncPlayerElementEvent
public AsyncPlayerElementEvent(@NotNull @NotNull AbstractWidget element, @NotNull @NotNull AbstractScreen screen, @NotNull @NotNull SocketPlayer player) Creates a new AsyncPlayerElementEvent 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 element associated with this event.- Returns:
- The element
-