DemandAllItemsQuery

Demands all items of type element from player

Possible returns by process:

  • Int(amount) => amount of items were removed

  • Result(failure) => player does not have any items of the type element

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

Constructors

Link copied to clipboard
constructor(element: Identifier)

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
Link copied to clipboard
open override val id: String

ID of this query