Class MenusCategorySelectionMenu

java.lang.Object
ua.mcchickenstudio.opencreative.menus.AbstractMenu
ua.mcchickenstudio.opencreative.coding.menus.blocks.MenusCategorySelectionMenu
All Implemented Interfaces:
org.bukkit.inventory.InventoryHolder, InventoryMenu
Direct Known Subclasses:
BlocksCategorySelectionMenu, EventValuesCategorySelectionMenu

public abstract class MenusCategorySelectionMenu extends AbstractMenu

MenusCategorySelectionMenu

This class represents a menu for selecting menus category and opening a content filtered by menus category selection menu.
  • Field Details

    • player

      protected final org.bukkit.entity.Player player
    • additionalPane

      protected final org.bukkit.Material additionalPane
    • mainItem

      protected final org.bukkit.inventory.ItemStack mainItem
    • mainCategory

      protected final String mainCategory
    • frequency

      protected final Object frequency
    • legacy

      protected final boolean legacy
    • contentMenu

      protected ContentWithMenusCategoryMenu<?> contentMenu
  • Constructor Details

    • MenusCategorySelectionMenu

      public MenusCategorySelectionMenu(@NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull org.bukkit.inventory.ItemStack mainItem, @NotNull @NotNull org.bukkit.Material additionalPane, @NotNull @NotNull Collection<MenusCategory> menusCategories, @NotNull @NotNull String title, @NotNull @NotNull String mainCategory, @NotNull @NotNull Object frequency)
  • Method Details

    • getContentBrowserMenu

      @NotNull public abstract @NotNull ContentWithMenusCategoryMenu<?> getContentBrowserMenu(Object frequency)
    • fillItems

      public void fillItems(org.bukkit.entity.Player player)
      Specified by:
      fillItems in class AbstractMenu
    • onClick

      public void onClick(@NotNull @NotNull org.bukkit.event.inventory.InventoryClickEvent event)
      Description copied from interface: InventoryMenu
      Executes when player clicks in inventory.
      Specified by:
      onClick in interface InventoryMenu
      Specified by:
      onClick in class AbstractMenu
      Parameters:
      event - event of click in inventory.
    • 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.