Package dev.twilite.game.facade
Class GrandExchange.Request
java.lang.Object
dev.twilite.game.facade.GrandExchange.Request
- Enclosing class:
GrandExchange
Mutable builder for placing a single Grand Exchange offer.
-
Method Summary
Modifier and TypeMethodDescriptionamount(int amount) Sets the number of items to buy or sell.Returns an existing offer matching this request when one is present.place()Progresses this request by one interface action and returns the matching offer when it can be identified.price(int price) Sets a fixed offer price.price(GrandExchange.Price price) Sets the price strategy used when the offer is created.price(IntUnaryOperator price) Sets a price strategy based only on the market guide price.
-
Method Details
-
amount
Sets the number of items to buy or sell. -
price
Sets a fixed offer price. -
price
Sets the price strategy used when the offer is created. -
price
Sets a price strategy based only on the market guide price. -
matchingOffer
Returns an existing offer matching this request when one is present. -
place
Progresses this request by one interface action and returns the matching offer when it can be identified.
-