Package dev.twilite.game.loadout
Class Restocker.Request
java.lang.Object
dev.twilite.game.loadout.Restocker.Request
- Enclosing class:
Restocker
Configured restock entry.
-
Method Summary
Modifier and TypeMethodDescriptionintamount()Returns the amount for the offer.amount(int amount) Sets the amount for this request.Returns where this request collects completed offers.collectionMode(GrandExchange.CollectionMode collectionMode) Sets where this request collects completed offers.Returns the gameval constant name for the item.intitemId()Returns the unnoted item id to buy.intReturns how many stale-offer retries this request allows.maxRetries(int retries) Sets how many stale-offer retries this request allows.Returns the retry-adjusted offer price resolver.intReturns the tick when the current offer was placed.price()Returns the price resolver for this item.price(int price) Sets the base fixed price for this request.price(GrandExchange.Price price) Sets the base price resolver for this request.booleanqueued()Returns whether this item is waiting to be restocked.request()Queues this request.intretries()Returns the number of stale-offer retries already used.intReturns how many ticks this request waits before retrying an active offer.retryAfterTicks(int ticks) Sets how many ticks this request waits before retrying an active offer.type()Returns whether this entry buys or sells the item.
-
Method Details
-
type
Returns whether this entry buys or sells the item. -
itemId
public int itemId()Returns the unnoted item id to buy. -
constantName
Returns the gameval constant name for the item. -
amount
public int amount()Returns the amount for the offer. -
amount
Sets the amount for this request. -
price
Returns the price resolver for this item. -
price
Sets the base price resolver for this request. -
price
Sets the base fixed price for this request. -
collectionMode
Returns where this request collects completed offers. -
collectionMode
Sets where this request collects completed offers. -
retryAfterTicks
public int retryAfterTicks()Returns how many ticks this request waits before retrying an active offer. -
retryAfterTicks
Sets how many ticks this request waits before retrying an active offer. -
maxRetries
public int maxRetries()Returns how many stale-offer retries this request allows. -
maxRetries
Sets how many stale-offer retries this request allows. -
request
Queues this request. -
offerPrice
Returns the retry-adjusted offer price resolver. -
retries
public int retries()Returns the number of stale-offer retries already used. -
placedTick
public int placedTick()Returns the tick when the current offer was placed. -
queued
public boolean queued()Returns whether this item is waiting to be restocked.
-