Class Production.Make

java.lang.Object
privbot.hooks.Production.Make
Enclosing class:
Production

public final class Production.Make extends Object
Fluent make builder.
  • Method Details

    • all

      public Production.Make all()
      Make all (default).
    • times

      public Production.Make times(int n)
      Make exactly n (>=1).
    • openWith

      public Production.Make openWith(int itemId, String object)
      Open the creation interface by using inventory item itemId on object object. If the menu is already open when run() is called, this step is skipped.
    • run

      public boolean run()
      Execute. Returns true once the creation action was successfully dispatched.

      Flow:

      1. If openWith(int, java.lang.String) was set and the menu is not already open, use the item on the object (the item-on-object action) and wait up to 6000Lms for the interface.
      2. Text-driven select: scan creation-interface widgets for a visible row whose text contains product and interact with the "Make all" / "Make N" action via Widgets.interactText(java.lang.String).
      3. Option-list fallback: if the standard widget approach yields nothing, delegate to Dialogue.select(java.lang.String) (covers chat-option-style servers).
      4. If both paths fail, returns false; caller should drive the recorded-sequence named Production.recordedFallbackName(String).
      5. Settle: blocks until the make animation goes idle (or 8000Lms elapses), then sleeps 1200Lms.