Annotation Type TaskDescriptor


  • @Retention(RUNTIME)
    public @interface TaskDescriptor
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean blockIfSleeping
      Whether or not to block execution when sleeping
      boolean blocking
      Whether or not to block execution of the iteration.
      boolean executeWhilePaused  
      boolean loop
      Runs on loop (when ticks are not called i.e when logged out)
      java.lang.String name  
      int priority  
      boolean register  
      boolean stoppable  
    • Element Detail

      • name

        java.lang.String name
        Default:
        ""
      • priority

        int priority
        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
      • blockIfSleeping

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

        boolean loop
        Runs on loop (when ticks are not called i.e when logged out)
        Default:
        false
      • stoppable

        boolean stoppable
        Default:
        false
      • executeWhilePaused

        boolean executeWhilePaused
        Default:
        false