Interface PriceManager

All Superinterfaces:
Savable

public interface PriceManager extends Savable
This interface defines methods for managing prices within an auction economy system.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the economy limit information associated with the specified AuctionEconomy, if available.
    long
    getMaxPrice(AuctionItem auctionItem, AuctionEconomy auctionEconomy)
    Retrieves the maximum price for the specified AuctionItem within the given AuctionEconomy.
    long
    getMinPrice(AuctionItem auctionItem, AuctionEconomy auctionEconomy)
    Retrieves the minimum price for the specified AuctionItem within the given AuctionEconomy.
    long
    getMinPrice(org.bukkit.inventory.ItemStack itemStack, AuctionEconomy auctionEconomy)
    Retrieves the minimum price for the specified ItemStack within the given AuctionEconomy.
    getPrice(org.bukkit.inventory.ItemStack itemStack)
    Retrieves the price information associated with the specified ItemStack, if available.

    Methods inherited from interface fr.maxlego08.zauctionhouse.api.storage.Savable

    load, save
  • Method Details

    • getMinPrice

      long getMinPrice(org.bukkit.inventory.ItemStack itemStack, AuctionEconomy auctionEconomy)
      Retrieves the minimum price for the specified ItemStack within the given AuctionEconomy.
      Parameters:
      itemStack - The ItemStack for which to retrieve the minimum price.
      auctionEconomy - The AuctionEconomy context in which to determine the price.
      Returns:
      The minimum price for the specified ItemStack.
    • getMinPrice

      long getMinPrice(AuctionItem auctionItem, AuctionEconomy auctionEconomy)
      Retrieves the minimum price for the specified AuctionItem within the given AuctionEconomy.
      Parameters:
      auctionItem - The AuctionItem for which to retrieve the minimum price.
      auctionEconomy - The AuctionEconomy context in which to determine the price.
      Returns:
      The minimum price for the specified AuctionItem.
    • getMaxPrice

      long getMaxPrice(AuctionItem auctionItem, AuctionEconomy auctionEconomy)
      Retrieves the maximum price for the specified AuctionItem within the given AuctionEconomy.
      Parameters:
      auctionItem - The AuctionItem for which to retrieve the maximum price.
      auctionEconomy - The AuctionEconomy context in which to determine the price.
      Returns:
      The maximum price for the specified AuctionItem.
    • getPrice

      Optional<PriceItem> getPrice(org.bukkit.inventory.ItemStack itemStack)
      Retrieves the price information associated with the specified ItemStack, if available.
      Parameters:
      itemStack - The ItemStack for which to retrieve price information.
      Returns:
      An Optional containing the PriceItem associated with the ItemStack, if available.
    • getEconomyLimit

      Optional<EconomyLimit> getEconomyLimit(AuctionEconomy auctionEconomy)
      Retrieves the economy limit information associated with the specified AuctionEconomy, if available.
      Parameters:
      auctionEconomy - The AuctionEconomy for which to retrieve economy limit information.
      Returns:
      An Optional containing the EconomyLimit associated with the AuctionEconomy, if available.