Interface IShopCategory


public interface IShopCategory
Represents a shop category.
  • Method Details

    • getSlot

      int getSlot()
      Get the slot of the category in the shop index.
      Returns:
      The slot number.
    • getName

      String getName()
      Get the name of the category.
      Returns:
      The category name.
    • isLoaded

      boolean isLoaded()
      Check if the category is loaded.
      Returns:
      true if the category is loaded, false otherwise.
    • getCategoryContentList

      List<ICategoryContent> getCategoryContentList()
      Get the list of category contents in this category.
      Returns:
      The list of category contents.
    • getCategoryContent

      ICategoryContent getCategoryContent(String identifier, IShopIndex shopIndex)
      Get a category content by its identifier.
      Parameters:
      identifier - The identifier of the category content.
      shopIndex - The shop index containing the category.
      Returns:
      The category content, or null if not found.
    • getItemStack

      org.bukkit.inventory.ItemStack getItemStack(org.bukkit.entity.Player player)
      Get the category item stack in the player's language.
      Parameters:
      player - The player.
      Returns:
      The item stack representing the category.
    • open

      void open(org.bukkit.entity.Player player, IShopIndex index, IShopCache shopCache)
      Open the category for a player in the shop index.
      Parameters:
      player - The player.
      index - The shop index.
      shopCache - The shop cache.