Class RestockTask
java.lang.Object
org.rspeer.game.script.Task
org.rspeer.game.script.tools.RestockTask
- All Implemented Interfaces:
Comparable<Task>
A default implementation of Task to perform the restocking of items.
You can submit items to buy or sell via
StockMarketService,
any submissions will set the task active.
This task is blocking and initialized with a priority of 1000.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute()voidsetCollectionStrategy(RestockTask.CollectionStrategy collectionStrategy) voidsetRetryStrategy(RestockTask.RetryStrategy retryStrategy) voidsetWalkToGrandExchangeFunction(Consumer<Task> walkToGrandExchange) Methods inherited from class Task
compareTo, getParent, sleep, sleepUntil, sleepUntil, sleepWhile, wake
-
Field Details
-
GRAND_EXCHANGE
-
GRAND_EXCHANGE_COORD
-
-
Constructor Details
-
RestockTask
-
-
Method Details
-
execute
-
getWalkToGrandExchangeFunction
-
setWalkToGrandExchangeFunction
-
getRetryStrategy
-
setRetryStrategy
-
getCollectionStrategy
-
setCollectionStrategy
-