-
public class DynamicCommand.DynamicCommandBuilder extends CommandBuilder<DynamicCommand>
-
-
Field Summary
Fields Modifier and Type Field Description public Supplier<Boolean>
triggerCondition
public Runnable
runnable
public Supplier<Boolean>
stopCondition
-
Method Summary
Modifier and Type Method Description DynamicCommand.DynamicCommandBuilder
when(Function<CommandConditionBuilder, Supplier<Boolean>> condition)
DynamicCommand.DynamicCommandBuilder
execute(Runnable runnable)
DynamicCommand.DynamicCommandBuilder
until(Supplier<Boolean> stopCondition)
DynamicCommand
build(String commandName)
Completes the command building. -
-
Method Detail
-
when
DynamicCommand.DynamicCommandBuilder when(Function<CommandConditionBuilder, Supplier<Boolean>> condition)
-
execute
DynamicCommand.DynamicCommandBuilder execute(Runnable runnable)
-
until
DynamicCommand.DynamicCommandBuilder until(Supplier<Boolean> stopCondition)
-
build
DynamicCommand build(String commandName)
Completes the command building.
-
-
-
-