try Do Instant Sell
fun tryDoInstantSell(player: MacrocosmPlayer, element: Identifier, amount: Int, mutate: Boolean = true): CompletableFuture<InstantSellResult>(source)
Attempts to instantly sell provided items
NOTE: this is a partially internal method, if you are looking for a way to do instant sell, look at Bazaar.instantSell instead
Return
completable future that returns the result if successful
Parameters
player
player that initiated the instant sell
element
item that is being sold
amount
amount of items that are being sold
mutate
whether to mutate (modify count of items sold etc.) existing orders