Package com.tomkeuper.bedwars.api.shop
Interface IShopManager
public interface IShopManager
The interface for managing the shop in the game.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuyItem(String path, String contentName, String tierName, String item, String material, int data, int amount, String enchant, String potion, String itemName, boolean autoEquip) Add a buy item to a content tier.voidaddBuyPotion(String path, String contentName, String tierName, String item, String material, int data, int amount, String enchant, String potion, String itemName) Add a buy potion to a content tier.voidaddCategoryContentTier(String path, String contentName, int contentSlot, String tierName, String tierMaterial, int tierData, int amount, boolean enchant, int tierCost, String tierCurrency, boolean permanent, boolean downgradable) Add a tier to a shop category content.voidaddCategoryContentTier(String path, String contentName, int contentSlot, String tierName, String tierMaterial, int tierData, int amount, boolean enchant, int tierCost, String tierCurrency, boolean permanent, boolean downgradable, boolean unbreakable) Add a tier to a shop category content with unbreakable option.org.bukkit.inventory.ItemStackenchantItem(org.bukkit.inventory.ItemStack itemStack) Enchant an item stack.getShop()Get the shop index.org.bukkit.inventory.meta.ItemMetahideItemDetails(org.bukkit.inventory.meta.ItemMeta im) Hide item details in the item meta.
-
Method Details
-
getShop
IShopIndex getShop()Get the shop index.- Returns:
- The shop index.
-
hideItemDetails
org.bukkit.inventory.meta.ItemMeta hideItemDetails(org.bukkit.inventory.meta.ItemMeta im) Hide item details in the item meta.- Parameters:
im- The item meta to hide details in.- Returns:
- The modified item meta with hidden details.
-
enchantItem
org.bukkit.inventory.ItemStack enchantItem(org.bukkit.inventory.ItemStack itemStack) Enchant an item stack.- Parameters:
itemStack- The item stack to enchant.- Returns:
- The enchanted item stack.
-
addCategoryContentTier
void addCategoryContentTier(String path, String contentName, int contentSlot, String tierName, String tierMaterial, int tierData, int amount, boolean enchant, int tierCost, String tierCurrency, boolean permanent, boolean downgradable) Add a tier to a shop category content.- Parameters:
path- The path of the shop category content.contentName- The name of the content.contentSlot- The slot of the content.tierName- The name of the tier.tierMaterial- The material of the tier item.tierData- The data value of the tier item.amount- The amount of the tier item.enchant- Whether the tier item should be enchanted.tierCost- The cost of the tier item.tierCurrency- The currency used to purchase the tier item.permanent- Whether the tier item is permanent.downgradable- Whether the tier item is downgradable.
-
addCategoryContentTier
void addCategoryContentTier(String path, String contentName, int contentSlot, String tierName, String tierMaterial, int tierData, int amount, boolean enchant, int tierCost, String tierCurrency, boolean permanent, boolean downgradable, boolean unbreakable) Add a tier to a shop category content with unbreakable option.- Parameters:
path- The path of the shop category content.contentName- The name of the content.contentSlot- The slot of the content.tierName- The name of the tier.tierMaterial- The material of the tier item.tierData- The data value of the tier item.amount- The amount of the tier item.enchant- Whether the tier item should be enchanted.tierCost- The cost of the tier item.tierCurrency- The currency used to purchase the tier item.permanent- Whether the tier item is permanent.downgradable- Whether the tier item is downgradable.unbreakable- Whether the tier item is unbreakable.
-
addBuyItem
void addBuyItem(String path, String contentName, String tierName, String item, String material, int data, int amount, String enchant, String potion, String itemName, boolean autoEquip) Add a buy item to a content tier.- Parameters:
path- The path of the shop category content.contentName- The name of the content.tierName- The name of the tier.item- The name of the buy item.material- The material of the buy item.data- The data value of the buy item.amount- The amount of the buy item.enchant- The enchantments applied to the buy item.potion- The potion effects applied to the buy item.itemName- The name of the buy item.autoEquip- Whether the buy item is automatically equipped.
-
addBuyPotion
void addBuyPotion(String path, String contentName, String tierName, String item, String material, int data, int amount, String enchant, String potion, String itemName) Add a buy potion to a content tier.- Parameters:
path- The path of the shop category content.contentName- The name of the content.tierName- The name of the tier.item- The name of the buy item.material- The material of the buy item.data- The data value of the buy item.amount- The amount of the buy item.enchant- The enchantments applied to the buy item.potion- The potion effects applied to the buy item.itemName- The name of the buy item.
-