Class SocketEvent

java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
Direct Known Subclasses:
AsyncModifiedInputEvent, AsyncPlayerClickExternalMessageBoxEvent, AsyncPlayerMoveMouseEvent, AsyncPlayerScreenEvent, AsyncPlayerScrollMouseEvent

public abstract class SocketEvent extends Event
Represents an event fired by SocketMC. All SocketMC events are fired asynchronously.
  • Constructor Details

    • SocketEvent

      public SocketEvent(@NotNull @NotNull SocketPlayer player)
      Creates a new SocketEvent instance.
      Parameters:
      player - The player associated with this event
  • Method Details

    • getSocketPlayer

      @NotNull public @NotNull SocketPlayer getSocketPlayer()
      Gets the SocketPlayer associated with this event.
      Returns:
      SocketPlayer
    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Gets the player associated with this event.
      Returns:
      Player
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      public static HandlerList getHandlerList()
      Gets the handler list for this event.
      Returns:
      HandlerList
    • toString

      public String toString()
      Overrides:
      toString in class Object