Class MenuOption

java.lang.Object
plugily.projects.buildbattle.menus.options.MenuOption

public class MenuOption
extends Object
Author:
Plajer

Created at 23.12.2018

  • Constructor Details

    • MenuOption

      public MenuOption​(int slot, String id, org.bukkit.inventory.ItemStack itemStack)
    • MenuOption

      public MenuOption​(int slot, String id, org.bukkit.inventory.ItemStack itemStack, String inventoryName)
  • Method Details

    • getSlot

      public int getSlot()
    • setSlot

      public void setSlot​(int slot)
    • getID

      public String getID()
    • getItemStack

      public org.bukkit.inventory.ItemStack getItemStack()
    • getInventoryName

      public String getInventoryName()
    • onClick

      public void onClick​(org.bukkit.event.inventory.InventoryClickEvent e)
      Called when item is clicked within Options Menu inventory
      Parameters:
      e - passed InventoryClickEvent from Options Menu
    • onTargetClick

      public void onTargetClick​(org.bukkit.event.inventory.InventoryClickEvent e)
      Called when anything is clicked in inventory registered in onClick method Method won't be called if inventory is not enabled. Method won't be called also if e.getCurrentItem() is not named or null
      Parameters:
      e - passed InventoryClickEvent when anything is clicked within target MenuOption
      See Also:
      onClick(InventoryClickEvent)