Package com.djrapitops.plan.commands.use
Interface SubcommandBuilder
-
- All Known Implementing Classes:
CommandWithSubcommands.Builder
,Subcommand.Builder
public interface SubcommandBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SubcommandBuilder
alias(java.lang.String alias)
SubcommandBuilder
aliases(java.lang.String... aliases)
Subcommand
build()
SubcommandBuilder
description(java.lang.String description)
default SubcommandBuilder
inDepthDescription(java.lang.String inDepthDescription)
SubcommandBuilder
inDepthDescription(java.lang.String... lines)
SubcommandBuilder
onCommand(java.util.function.BiConsumer<CMDSender,Arguments> executor)
default SubcommandBuilder
onCommand(java.util.function.Consumer<CMDSender> executor)
SubcommandBuilder
onTabComplete(java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>> resolver)
SubcommandBuilder
optionalArgument(java.lang.String name, java.lang.String description)
SubcommandBuilder
requiredArgument(java.lang.String name, java.lang.String description)
default SubcommandBuilder
requirePermission(Permissions permission)
SubcommandBuilder
requirePermission(java.lang.String permission)
-
-
-
Method Detail
-
alias
SubcommandBuilder alias(java.lang.String alias)
-
aliases
SubcommandBuilder aliases(java.lang.String... aliases)
-
requirePermission
SubcommandBuilder requirePermission(java.lang.String permission)
-
requirePermission
default SubcommandBuilder requirePermission(Permissions permission)
-
description
SubcommandBuilder description(java.lang.String description)
-
inDepthDescription
default SubcommandBuilder inDepthDescription(java.lang.String inDepthDescription)
-
inDepthDescription
SubcommandBuilder inDepthDescription(java.lang.String... lines)
-
requiredArgument
SubcommandBuilder requiredArgument(java.lang.String name, java.lang.String description)
-
optionalArgument
SubcommandBuilder optionalArgument(java.lang.String name, java.lang.String description)
-
onCommand
SubcommandBuilder onCommand(java.util.function.BiConsumer<CMDSender,Arguments> executor)
-
onCommand
default SubcommandBuilder onCommand(java.util.function.Consumer<CMDSender> executor)
-
onTabComplete
SubcommandBuilder onTabComplete(java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>> resolver)
-
build
Subcommand build()
-
-