Class RecoveryPlan

java.lang.Object
privbot.mechanics.RecoveryPlan

public final class RecoveryPlan extends Object
What ctx.recovery.afterDeath does once the player is back: an optional restock, then an optional trip back. Immutable and pure; build it with builder(). An empty plan only waits for the respawn (and reclaims items where the server has an item reclaim).
  • Method Details

    • builder

      public static RecoveryPlan.Builder builder()
      Returns:
      a new builder
    • restock

      public RestockTarget restock()
      Returns:
      what to restock to after respawning, or null for no restock
    • back

      public Destination back()
      Returns:
      where to go back to, or null for no trip
    • toString

      public String toString()
      Overrides:
      toString in class Object