Class DescriptiveProgressiveTask<T>

java.lang.Object
io.github.thecsdev.tcdcommons.api.util.thread.ProgressiveTask<T>
io.github.thecsdev.tcdcommons.api.util.thread.DescriptiveProgressiveTask<T>

public abstract class DescriptiveProgressiveTask<T> extends ProgressiveTask<T>
A ProgressiveTask that also provides descriptions on "what is currently happening as the task is executing".
  • Field Details

  • Constructor Details

    • DescriptiveProgressiveTask

      public DescriptiveProgressiveTask()
  • Method Details

    • getProgressDescription

      @Nullable public final @Nullable net.minecraft.text.Text getProgressDescription()
      Returns a user-friendly Text that describes what is currently going on as the task is executing.
    • setProgressDescription

      protected final void setProgressDescription(@Nullable @Nullable net.minecraft.text.Text description)
      Sets the user-friendly Text that describes what is currently going on as the task is executing.
      Parameters:
      description - The Text.