Class GuiCloseEvent

java.lang.Object
org.bukkit.event.Event
io.github.toberocat.guiengine.event.spigot.GuiEngineEvent
io.github.toberocat.guiengine.event.spigot.GuiCloseEvent

public class GuiCloseEvent extends GuiEngineEvent
Represents a custom GUI close event triggered when a player closes a GUI. It extends the `GuiEngineEvent` class and provides additional information about the close event.

This class is licensed under the GNU General Public License. Created: 21.05.2023 Author: Tobias Madlberger (Tobias)

  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    GuiCloseEvent(@NotNull GuiContext context, @NotNull org.bukkit.event.inventory.InventoryCloseEvent closeEvent)
    Constructs a new `GuiCloseEvent` with the associated `GuiContext` and the inventory close event.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.event.inventory.InventoryCloseEvent
    Gets the `InventoryCloseEvent` associated with this GUI close event.

    Methods inherited from class io.github.toberocat.guiengine.event.spigot.GuiEngineEvent

    getContext, getHandlerList, getHandlers

    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(@NotNull @NotNull GuiContext context, @NotNull @NotNull org.bukkit.event.inventory.InventoryCloseEvent closeEvent)
      Constructs a new `GuiCloseEvent` with the associated `GuiContext` and the inventory close event.
      Parameters:
      context - The `GuiContext` associated with the event.
      closeEvent - The `InventoryCloseEvent` triggered when the GUI is closed.
  • Method Details

    • getCloseEvent

      @NotNull public @NotNull org.bukkit.event.inventory.InventoryCloseEvent getCloseEvent()
      Gets the `InventoryCloseEvent` associated with this GUI close event.
      Returns:
      The `InventoryCloseEvent` triggered when the GUI is closed.