Interface Task<T>

All Known Implementing Classes:
AbstractTask, RepeatingTask, SingleRunTask

public interface Task<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel any future execution of this task.
    com.mojang.datafixers.util.Either<T,? extends Exception>
     
    boolean
     
  • Method Details

    • getLastResult

      com.mojang.datafixers.util.Either<T,? extends Exception> getLastResult()
      Returns:
      the last result of this task, or an exception if the task failed.
    • cancel

      void cancel()
      Cancel any future execution of this task. If the task is currently running, it will be allowed to finish.

      Repeatedly calling this method has no effect.

    • isCancelled

      boolean isCancelled()