Package cloud.commandframework.tasks
Class TaskRecipe
java.lang.Object
cloud.commandframework.tasks.TaskRecipe
A task recipe is a chain of tasks with optional synchronization steps,
that can be used to produce some sort of result from some input
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classRepresents a partial recipefinal classRepresents a partial recipe -
Method Summary
Modifier and TypeMethodDescription<I> @NonNull TaskRecipe.TaskRecipeComponentOutputting<I,I> begin(@NonNull I input) Begin the recipe.
-
Method Details
-
begin
Begin the recipe. This step always runs asynchronously.- Type Parameters:
I- Input type- Parameters:
input- Input- Returns:
- Function that maps the input to itself
-