Interface PriceManager
- All Superinterfaces:
Savable
This interface defines methods for managing prices within an auction economy system.
-
Method Summary
Modifier and TypeMethodDescriptiongetEconomyLimit(AuctionEconomy auctionEconomy) Retrieves the economy limit information associated with the specified AuctionEconomy, if available.longgetMaxPrice(AuctionItem auctionItem, AuctionEconomy auctionEconomy) Retrieves the maximum price for the specified AuctionItem within the given AuctionEconomy.longgetMinPrice(AuctionItem auctionItem, AuctionEconomy auctionEconomy) Retrieves the minimum price for the specified AuctionItem within the given AuctionEconomy.longgetMinPrice(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.
-
Method Details
-
getMinPrice
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
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
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
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
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.
-