Class Shop

java.lang.Object
com.vk2gpz.autosell.object.Shop

public class Shop extends Object
Represents a shop in the AutoSell plugin. Each shop has a name, priority, and a map of item prices.
  • Field Details

    • name

      protected String name
      The name of the shop.
    • priority

      protected int priority
      The priority of the shop.
    • prices

      protected Map<org.bukkit.inventory.ItemStack,Double> prices
      The map of item prices in the shop. The key is the ItemStack and the value is the price.
  • Constructor Details

    • Shop

      public Shop(String name)
      Constructor to initialize the Shop object with a name.
      Parameters:
      name - The name of the shop.
  • Method Details

    • getName

      public String getName()
    • setShopName

      public void setShopName(String name)
    • getBaseWorth

      public double getBaseWorth(org.bukkit.inventory.ItemStack item)
      Gets the base worth of an item in the shop.
      Parameters:
      item - The item to get the base worth for.
      Returns:
      The base worth of the item, or -1.0 if not found.
    • getPrices

      public Map<org.bukkit.inventory.ItemStack,Double> getPrices()
    • setPrices

      public void setPrices(Map<org.bukkit.inventory.ItemStack,Double> prices)
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)
    • getShopSize

      public int getShopSize()