Class PotionsMenu

java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.menus.AbstractListMenu<org.bukkit.potion.PotionEffectType>
ua.mcchickenstudio.opencreative.menus.ListBrowserMenu<org.bukkit.potion.PotionEffectType>
ua.mcchickenstudio.opencreative.coding.menus.variables.PotionsMenu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, InventoryMenu

public final class PotionsMenu extends ListBrowserMenu<org.bukkit.potion.PotionEffectType>
  • Constructor Details

    • PotionsMenu

      public PotionsMenu(org.bukkit.entity.Player player, org.bukkit.Material material)
  • Method Details

    • getElementIcon

      protected org.bukkit.inventory.ItemStack getElementIcon(org.bukkit.potion.PotionEffectType type)
      Specified by:
      getElementIcon in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • fillDecorationItems

      protected void fillDecorationItems()
      Overrides:
      fillDecorationItems in class AbstractListMenu<org.bukkit.potion.PotionEffectType>
    • fillOtherItems

      protected void fillOtherItems()
      Specified by:
      fillOtherItems in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • onCharmsBarClick

      protected void onCharmsBarClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Specified by:
      onCharmsBarClick in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • onElementClick

      protected void onElementClick(org.bukkit.event.inventory.InventoryClickEvent event)
      Specified by:
      onElementClick in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • getElements

      public List<org.bukkit.potion.PotionEffectType> getElements()
      Specified by:
      getElements in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • getNextPageButton

      protected org.bukkit.inventory.ItemStack getNextPageButton()
      Specified by:
      getNextPageButton in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • getPreviousPageButton

      protected org.bukkit.inventory.ItemStack getPreviousPageButton()
      Specified by:
      getPreviousPageButton in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • getNoElementsButton

      protected org.bukkit.inventory.ItemStack getNoElementsButton()
      Specified by:
      getNoElementsButton in class ListBrowserMenu<org.bukkit.potion.PotionEffectType>
    • onOpen

      public void onOpen(@NotNull @NotNull org.bukkit.event.inventory.InventoryOpenEvent event)
      Description copied from interface: InventoryMenu
      Executes when player opens inventory and sees it first time. Useful for playing sounds or setting items.
      Specified by:
      onOpen in interface InventoryMenu
      Specified by:
      onOpen in class AbstractMenu
      Parameters:
      event - event of inventory open.