Class GUI.InventoryData

java.lang.Object
com.shanebeestudios.snippets.gui.GUI.InventoryData
Enclosing class:
GUI

public static class GUI.InventoryData extends Object
Data involved when clicking a GUI slot
  • Constructor Details

  • Method Details

    • getEvent

      @NotNull public @NotNull InventoryClickEvent getEvent()
      Get the click event
      Returns:
      Click event
    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Get the player who clicked
      Returns:
      Player who clicked
    • getSlot

      public int getSlot()
      Get the slot which was clicked
      Returns:
      Slot which was clicked
    • getClickedItem

      @Nullable public @Nullable ItemStack getClickedItem()
      Get the item which was clicked on
      Returns:
      Item which was clicked on
    • getAction

      @NotNull public @NotNull InventoryAction getAction()
      Get the inventory action of the click
      Returns:
      Inventory action of the click
    • getSlotType

      @NotNull public InventoryType.SlotType getSlotType()
      Get the type of slot that was clicked
      Returns:
      Type of slot