Class GUIClickableItem

java.lang.Object
net.jeqo.bloons.gui.GUIClickableItem

public abstract class GUIClickableItem extends Object
A class that represents a clickable item in a GUI, both interactable and non-interactable.
  • Field Details

  • Constructor Details

    • GUIClickableItem

      public GUIClickableItem()
      Creates a new clickable item
  • Method Details

    • getFinalizedItem

      public NBTItem getFinalizedItem()
      Gets the finalized item with the GUI NBT data attached
      Returns:
      The finalized item, type net.jeqo.bloons.utils.NBTItem
    • run

      public abstract void run(org.bukkit.event.inventory.InventoryClickEvent event)
      What runs when the item is clicked
      Parameters:
      event - The event that is fired when the item is clicked, type org.bukkit.event.inventory.InventoryClickEvent
    • getSlot

      public abstract int getSlot()
      The slot that the item is in
      Returns:
      The slot that the item is in, type int
    • getItem

      public abstract NBTItem getItem()
      The item that is displayed in the GUI
      Returns:
      The item, type net.jeqo.bloons.utils.NBTItem
    • canPickup

      public boolean canPickup()
      Whether the item can be picked up
      Returns:
      Whether the item can be picked up, type boolean