DemandQtyItemsQuery

class DemandQtyItemsQuery(val element: Identifier, val amount: Int) : Bazaar.Query(source)

Demands a certain quantity of items of type element from player

Possible returns by process:

  • Result(failure) => player does not have enough items

  • Int(1) => operation successful

  • throws BazaarError => invalid operation provoked by you (e.g. invalid element ID)

Constructors

Link copied to clipboard
constructor(element: Identifier, amount: Int)

Functions

Link copied to clipboard
open override fun process(player: MacrocosmPlayer, paper: Player): Any

Processes this query returning dynamic value based on the implementation

Properties

Link copied to clipboard
val amount: Int
Link copied to clipboard
Link copied to clipboard
open override val id: String

ID of this query