Package dev.twilite.game.facade
Interface GrandExchange.Price
- All Superinterfaces:
IntUnaryOperator
- Enclosing class:
GrandExchange
Resolves the price used when creating a Grand Exchange offer.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GrandExchange.Pricefixed(int value) Uses a fixed price regardless of the item or market guide price.static GrandExchange.Pricehighest(GrandExchange.Price first, GrandExchange.Price second) Uses the greater value resolved by two price strategies.static GrandExchange.Pricelive()Uses the latest real-time wiki high price when available, otherwise falls back to the market guide price.static GrandExchange.Pricelowest(GrandExchange.Price first, GrandExchange.Price second) Uses the lower value resolved by two price strategies.static GrandExchange.Pricemarket()Uses the market guide price shown by the Grand Exchange setup screen.default GrandExchange.Priceminus5()Lowers the resolved price by 5%.default GrandExchange.Priceminus5(int times) Lowers the resolved price by 5% once for each supplied step.default GrandExchange.Priceplus5()Raises the resolved price by 5%.default GrandExchange.Priceplus5(int times) Raises the resolved price by 5% once for each supplied step.default intresolve(int itemId, int marketPrice) Resolves a price for an item id and the current market guide price.Methods inherited from interface java.util.function.IntUnaryOperator
andThen, applyAsInt, compose
-
Method Details
-
market
Uses the market guide price shown by the Grand Exchange setup screen. -
fixed
Uses a fixed price regardless of the item or market guide price. -
highest
Uses the greater value resolved by two price strategies. -
lowest
Uses the lower value resolved by two price strategies. -
live
Uses the latest real-time wiki high price when available, otherwise falls back to the market guide price. -
resolve
default int resolve(int itemId, int marketPrice) Resolves a price for an item id and the current market guide price. -
plus5
Raises the resolved price by 5%. -
plus5
Raises the resolved price by 5% once for each supplied step. -
minus5
Lowers the resolved price by 5%. -
minus5
Lowers the resolved price by 5% once for each supplied step.
-