Interface Continuation

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DurationContinuation, ForeverContinuation, NContinuation, OnceContinuation

@Experimental public interface Continuation extends Closeable
Decides whether a task should continue executing. Checked each tick.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
     
    boolean
    shouldContinue(boolean taskExecuted)
     
  • Method Details

    • shouldContinue

      boolean shouldContinue(boolean taskExecuted)
    • close

      default void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable