Class GUICloseEvent

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

public class GUICloseEvent 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
    GUICloseEvent(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 closed GUI
    org.bukkit.entity.Player
    Get the viewer who just closed 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

    • GUICloseEvent

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

    • getSession

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

      public org.bukkit.entity.Player getViewer()
      Get the viewer who just closed 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()