Class GuiListener

java.lang.Object
dev.triumphteam.gui.guis.GuiListener
All Implemented Interfaces:
org.bukkit.event.Listener

public final class GuiListener
extends java.lang.Object
implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors 
    Constructor Description
    GuiListener()  
  • Method Summary

    Modifier and Type Method Description
    void onGuiClick​(org.bukkit.event.inventory.InventoryClickEvent event)
    Handles what happens when a player clicks on the GUI
    void onGuiClose​(org.bukkit.event.inventory.InventoryCloseEvent event)
    Handles what happens when the GUI is closed
    void onGuiDrag​(org.bukkit.event.inventory.InventoryDragEvent event)
    Handles what happens when a player clicks on the GUI
    void onGuiOpen​(org.bukkit.event.inventory.InventoryOpenEvent event)
    Handles what happens when the GUI is opened

    Methods inherited from class java.lang.Object

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

  • Method Details

    • onGuiClick

      public void onGuiClick​(org.bukkit.event.inventory.InventoryClickEvent event)
      Handles what happens when a player clicks on the GUI
      Parameters:
      event - The InventoryClickEvent
    • onGuiDrag

      public void onGuiDrag​(org.bukkit.event.inventory.InventoryDragEvent event)
      Handles what happens when a player clicks on the GUI
      Parameters:
      event - The InventoryClickEvent
    • onGuiClose

      public void onGuiClose​(org.bukkit.event.inventory.InventoryCloseEvent event)
      Handles what happens when the GUI is closed
      Parameters:
      event - The InventoryCloseEvent
    • onGuiOpen

      public void onGuiOpen​(org.bukkit.event.inventory.InventoryOpenEvent event)
      Handles what happens when the GUI is opened
      Parameters:
      event - The InventoryOpenEvent