Class BuyItemHandler
java.lang.Object
studio.magemonkey.genesis.managers.BuyItemHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBuyItem(GenesisShop shop, String name, org.bukkit.configuration.ConfigurationSection config) Create item to buyloadItem(org.bukkit.configuration.ConfigurationSection itemsSection, GenesisShop shop, String name) Load an item from a config into a shop
-
Constructor Details
-
BuyItemHandler
public BuyItemHandler()
-
-
Method Details
-
loadItem
public List<GenesisBuy> loadItem(org.bukkit.configuration.ConfigurationSection itemsSection, GenesisShop shop, String name) Load an item from a config into a shop- Parameters:
itemsSection- the config section for the itemshop- the shop to load it intoname- the name of the config- Returns:
- shop item
-
createBuyItem
public List<GenesisBuy> createBuyItem(GenesisShop shop, String name, org.bukkit.configuration.ConfigurationSection config) Create item to buy- Parameters:
shop- name of shop to load fromname- name of itemconfig- part of config to get from- Returns:
- shop item
-