Class Task

  • Direct Known Subclasses:
    RestockTask

    public abstract class Task
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Task()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract boolean execute()  
      void sleep​(int ticks)  
      void sleepUntil​(java.util.function.BooleanSupplier condition, int ticks)  
      void sleepWhile​(java.util.function.BooleanSupplier condition, int ticks)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Task

        public Task()
    • Method Detail

      • execute

        public abstract boolean execute()
      • sleep

        public void sleep​(int ticks)
      • sleepUntil

        public void sleepUntil​(java.util.function.BooleanSupplier condition,
                               int ticks)
      • sleepWhile

        public void sleepWhile​(java.util.function.BooleanSupplier condition,
                               int ticks)