Package xyz.gmitch215.socketmc.events
Class SocketEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
- Direct Known Subclasses:
AsyncModifiedInputEvent,AsyncPlayerChangeOptionEvent,AsyncPlayerClickExternalMessageBoxEvent,AsyncPlayerMoveMouseEvent,AsyncPlayerScreenEvent,AsyncPlayerScrollMouseEvent
Represents an event fired by SocketMC. All SocketMC events are fired asynchronously.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionSocketEvent(@NotNull SocketPlayer player) Creates a new SocketEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListGets the handler list for this event.Gets the player associated with this event.Gets the SocketPlayer associated with this event.toString()Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SocketEvent
Creates a new SocketEvent instance.- Parameters:
player- The player associated with this event
-
-
Method Details
-
getSocketPlayer
Gets the SocketPlayer associated with this event.- Returns:
- SocketPlayer
-
getPlayer
Gets the player associated with this event.- Returns:
- Player
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
Gets the handler list for this event.- Returns:
- HandlerList
-
toString
-