Class Execution

java.lang.Object
net.botwithus.rs3.script.Execution

public final class Execution extends Object
  • Method Details

    • delayExt

      public static boolean delayExt(ScriptDelay delay)
    • delayUntil

      public static boolean delayUntil(Callable<Boolean> predicate, Callable<Boolean> continuation, long timeout)
    • delayUntil

      public static boolean delayUntil(Predicate<LocalPlayer> predicate, long timeout, TimeUnit unit)
    • delay

      public static boolean delay(long time)
      Delays the scripting thread for x amount of time
      Parameters:
      time - The time in milliseconds
    • delayUntil

      public static boolean delayUntil(long timeout, Callable<Boolean> predicate)
      Delays the current thread for a timeout or until the predicate is met.
      Parameters:
      timeout - The timeout
      predicate - The predicate
    • delayWhile

      public static boolean delayWhile(long timeout, Callable<Boolean> predicate)
      Delays the current thread for a timeout or until the predicate is met.
      Parameters:
      timeout - The timeout
      predicate - The predicate