Class GuiElement.Click

java.lang.Object
de.themoep.inventorygui.GuiElement.Click
Enclosing class:
GuiElement

public static class GuiElement.Click
extends Object
  • Constructor Details

    • Click

      public Click​(InventoryGui gui, int slot, GuiElement element, org.bukkit.event.inventory.ClickType type, org.bukkit.event.inventory.InventoryClickEvent event)
  • Method Details

    • getSlot

      public int getSlot()
      Get the slot of the GUI that was clicked
      Returns:
      The clicked slot
    • getElement

      public GuiElement getElement()
      Get the element that was clicked
      Returns:
      The clicked GuiElement
    • getType

      public org.bukkit.event.inventory.ClickType getType()
      Get the type of the click
      Returns:
      The type of the click
    • getEvent

      public org.bukkit.event.inventory.InventoryClickEvent getEvent()
      Get the event of the click
      Returns:
      The InventoryClickEvent associated with this Click
    • getGui

      public InventoryGui getGui()