Package com.tomkeuper.bedwars.api.shop
Interface IShopCategory
public interface IShopCategory
Represents a shop category.
-
Method Summary
Modifier and TypeMethodDescriptiongetCategoryContent
(String identifier, IShopIndex shopIndex) Get a category content by its identifier.Get the list of category contents in this category.org.bukkit.inventory.ItemStack
getItemStack
(org.bukkit.entity.Player player) Get the category item stack in the player's language.getName()
Get the name of the category.int
getSlot()
Get the slot of the category in the shop index.boolean
isLoaded()
Check if the category is loaded.void
open
(org.bukkit.entity.Player player, IShopIndex index, IShopCache shopCache) Open the category for a player in the shop index.
-
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
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
Open the category for a player in the shop index.- Parameters:
player
- The player.index
- The shop index.shopCache
- The shop cache.
-