Package org.rspeer.game.script.tools
Class RestockTask
- java.lang.Object
-
- org.rspeer.game.script.Task
-
- org.rspeer.game.script.tools.RestockTask
-
public class RestockTask extends Task
A default implementation of Task to perform the restocking of items. You can submit items to buy or sell viaStockMarketService
, any submissions will set the task active. This task is blocking and initialized with a priority of 1000.
-
-
Field Summary
Fields Modifier and Type Field Description static Position
GRAND_EXCHANGE
-
Constructor Summary
Constructors Constructor Description RestockTask(StockMarketService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute()
java.util.function.Consumer<Task>
getWalkToGrandExchangeFunction()
void
setWalkToGrandExchangeFunction(java.util.function.Consumer<Task> walkToGrandExchange)
-
Methods inherited from class org.rspeer.game.script.Task
sleep, sleepUntil, sleepWhile
-
-
-
-
Field Detail
-
GRAND_EXCHANGE
public static final Position GRAND_EXCHANGE
-
-
Constructor Detail
-
RestockTask
@Inject public RestockTask(StockMarketService service)
-
-