Class TreeScript


  • public abstract class TreeScript
    extends LoopScript
    • Field Detail

      • EMPTY_LEAF

        public static final LeafTask EMPTY_LEAF
    • Constructor Detail

      • TreeScript

        public TreeScript()
    • Method Detail

      • setRootTask

        public void setRootTask​(TreeTask rootTask)
      • loop

        protected int loop()
        The script loop function.

        By default returns a random number between 50-300. Override this and call super.loop() to override the return value.

        Specified by:
        loop in class LoopScript
        Returns:
        a positive number of the amount the script should sleep or a negative number to the stop script