Class Restocker.Request

java.lang.Object
dev.twilite.game.loadout.Restocker.Request
Enclosing class:
Restocker

public static class Restocker.Request extends Object
Configured restock entry.
  • Method Details

    • type

      public GrandExchangeOffer.Type type()
      Returns whether this entry buys or sells the item.
    • itemId

      public int itemId()
      Returns the unnoted item id to buy.
    • constantName

      public String constantName()
      Returns the gameval constant name for the item.
    • amount

      public int amount()
      Returns the amount for the offer.
    • amount

      public Restocker.Request amount(int amount)
      Sets the amount for this request.
    • price

      public GrandExchange.Price price()
      Returns the price resolver for this item.
    • price

      public Restocker.Request price(GrandExchange.Price price)
      Sets the base price resolver for this request.
    • price

      public Restocker.Request price(int price)
      Sets the base fixed price for this request.
    • collectionMode

      public GrandExchange.CollectionMode collectionMode()
      Returns where this request collects completed offers.
    • collectionMode

      public Restocker.Request collectionMode(GrandExchange.CollectionMode 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

      public Restocker.Request retryAfterTicks(int ticks)
      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

      public Restocker.Request maxRetries(int retries)
      Sets how many stale-offer retries this request allows.
    • request

      public Restocker.Request request()
      Queues this request.
    • offerPrice

      public GrandExchange.Price 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.