Class GUIOpenEvent

java.lang.Object
org.bukkit.event.Event
me.eddie.inventoryguiapi.gui.events.GUIEvent
me.eddie.inventoryguiapi.gui.events.GUIOpenEvent

public class GUIOpenEvent extends GUIEvent
Event that denotes that a GUI has been opened
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    GUIOpenEvent(GUISession session, org.bukkit.entity.Player viewer)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    Get the GUISession associated with the opened GUI
    org.bukkit.entity.Player
    Get the viewer who just opened this GUI

    Methods inherited from class org.bukkit.event.Event

    getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GUIOpenEvent

      public GUIOpenEvent(GUISession session, org.bukkit.entity.Player viewer)
  • Method Details

    • getSession

      public GUISession getSession()
      Get the GUISession associated with the opened GUI
      Returns:
      The GUISession
    • getViewer

      public org.bukkit.entity.Player getViewer()
      Get the viewer who just opened this GUI
      Returns:
      The viewer
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Overrides:
      getHandlers in class GUIEvent
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()