Class RestockTarget.Builder

java.lang.Object
privbot.mechanics.RestockTarget.Builder
Enclosing class:
RestockTarget

public static final class RestockTarget.Builder extends Object
Builds a RestockTarget.
  • Method Details

    • worn

      public RestockTarget.Builder worn(GearSetup setup)
      Parameters:
      setup - a GearSetup.Kind.WORN setup, or null for none
      Returns:
      this
      Throws:
      IllegalArgumentException - for a carried setup
    • carried

      public RestockTarget.Builder carried(GearSetup setup)
      Parameters:
      setup - a GearSetup.Kind.CARRIED setup, or null for none
      Returns:
      this
      Throws:
      IllegalArgumentException - for a worn setup
    • depositFirst

      public RestockTarget.Builder depositFirst(boolean v)
      Parameters:
      v - whether to deposit unwanted items before withdrawing (default true) @return this
    • preset

      public RestockTarget.Builder preset(String ref)
      A server preset to try before withdrawing. A preset may replace the whole inventory (Impact's loadouts do): anything carried that the preset does not hold can be lost. With depositFirst on (the default) and a carried setup, the job deposits unwanted items before pressing it; without a carried setup or with depositFirst(false), nothing is protected, so bank your loot first.
      Parameters:
      ref - the preset (Impact: 1..6; Elorin reloads its last preset whatever the ref); null or blank for none
      Returns:
      this
    • build

      public RestockTarget build()
      Returns:
      the target