Class RecoveryPlan.Builder

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

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

    • restock

      public RecoveryPlan.Builder restock(RestockTarget target)
      Parameters:
      target - what to restock to once respawned (see ctx.restock.to); null clears it
      Returns:
      this builder
    • back

      public RecoveryPlan.Builder back(Destination destination)
      Parameters:
      destination - where to travel back to after the restock (see ctx.travel.go); null clears it
      Returns:
      this builder
    • build

      public RecoveryPlan build()
      Returns:
      the plan