Package cloud.commandframework.tasks
Class TaskRecipe.TaskRecipeComponentVoid<I>
java.lang.Object
cloud.commandframework.tasks.TaskRecipe.TaskRecipeComponentVoid<I>
- Type Parameters:
I- Input type
- Enclosing class:
- TaskRecipe
Represents a partial recipe
-
Method Summary
Modifier and TypeMethodDescriptionasynchronous(@NonNull TaskConsumer<I> consumer) Add a new asynchronous step, consuming the input of the earlier stepvoidexecute()Execute the recipevoidExecute the recipesynchronous(@NonNull TaskConsumer<I> consumer) Add a new synchronous step, consuming the input of the earlier step
-
Method Details
-
synchronous
Add a new synchronous step, consuming the input of the earlier step- Parameters:
consumer- Consumer that consumes the input- Returns:
- New task recipe component
-
asynchronous
Add a new asynchronous step, consuming the input of the earlier step- Parameters:
consumer- Consumer that consumes the input- Returns:
- New task recipe component
-
execute
Execute the recipe- Parameters:
callback- Callback function
-
execute
public void execute()Execute the recipe
-