Interface AuctionHouseService
public interface AuctionHouseService
Player-to-player marketplace: list an item at a fixed price, or as an auction with bidding,
optionally taxed on listing.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionPlaces a bid on an auction listing.browse(int page, int pageSize) Active listings, newest first.collectExpired(UUID seller, long listingId) Collects a pending item: an unsold/expired fixed-price listing (as its seller) or a won auction (as the winning bidder).expiredAwaitingCollection(UUID seller) Listings the player has something waiting on - seecollectExpired(UUID, long).listAuction(UUID seller, org.bukkit.inventory.ItemStack item, double startingBid) Listsitemas an auction starting atstartingBid.listingsBySeller(UUID seller, boolean activeOnly)
-
Method Details
-
list
CompletableFuture<AuctionListing> list(UUID seller, org.bukkit.inventory.ItemStack item, double price) -
listAuction
CompletableFuture<AuctionListing> listAuction(UUID seller, org.bukkit.inventory.ItemStack item, double startingBid) Listsitemas an auction starting atstartingBid. -
purchase
-
bid
Places a bid on an auction listing. Chargesamountimmediately and refunds the previous highest bidder (if any) in the same operation, so a bidder's money is never at risk of vanishing between an outbid and the refund - both happen atomically under the listing's lock. -
cancel
-
browse
Active listings, newest first. -
listingsBySeller
-
expiredAwaitingCollection
Listings the player has something waiting on - seecollectExpired(UUID, long). -
collectExpired
Collects a pending item: an unsold/expired fixed-price listing (as its seller) or a won auction (as the winning bidder). Returnsfalseif there's nothing to collect, the caller isn't the right party, or their inventory has no space.
-