Class BuyItemHandler

java.lang.Object
studio.magemonkey.genesis.managers.BuyItemHandler

public class BuyItemHandler extends Object
  • 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 item
      shop - the shop to load it into
      name - 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 from
      name - name of item
      config - part of config to get from
      Returns:
      shop item