Annotation Interface TaskDescriptor


@Retention(RUNTIME) public @interface TaskDescriptor
  • Element Details

    • name

      String name
      Default:
      ""
    • priority

      @Deprecated int priority
      Deprecated.
      Default:
      0
    • register

      boolean register
      Returns:
      true to register this task to the event dispatcher
      Default:
      false
    • blocking

      boolean blocking
      Whether or not to block execution of the iteration. e.g. if tasks are {Eat, Drop, Walk} if all tasks validate and blocking() is true for Drop, it'll stop there and not execute Walk.
      Default:
      false
    • stoppable

      boolean stoppable
      Returns:
      true if this script should stop when the execute returns true
      Default:
      false
    • blockIfSleeping

      boolean blockIfSleeping
      Whether or not to block execution when sleeping
      Default:
      false
    • loop

      @Deprecated boolean loop
      Deprecated.
      Use loginScreen() if you need to run tasks on the login screen
      Runs on loop (when ticks are not called i.e when logged out)
      Default:
      false
    • loginScreen

      boolean loginScreen
      Returns:
      true if this task should run on the login screen
      Default:
      false
    • executeWhilePaused

      boolean executeWhilePaused
      Default:
      false
    • children

      Class<? extends Task>[] children
      Default:
      {}
    • verbose

      boolean verbose
      Returns:
      false to omit it from TaskManager.getLastTaskExecutionSequence()
      Default:
      true