Package com.djrapitops.plan.commands.use
Class Subcommand.Builder<T extends SubcommandBuilder>
java.lang.Object
com.djrapitops.plan.commands.use.Subcommand.Builder<T>
- All Implemented Interfaces:
SubcommandBuilder
- Direct Known Subclasses:
CommandWithSubcommands.Builder
- Enclosing class:
- Subcommand
public static class Subcommand.Builder<T extends SubcommandBuilder>
extends Object
implements SubcommandBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
description
(String description) inDepthDescription
(String... lines) onCommand
(BiConsumer<CMDSender, Arguments> executor) onTabComplete
(BiFunction<CMDSender, Arguments, List<String>> resolver) optionalArgument
(String name, String description) requiredArgument
(String name, String description) requirePermission
(String permission) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.commands.use.SubcommandBuilder
inDepthDescription, onCommand, requirePermission
-
Method Details
-
alias
- Specified by:
alias
in interfaceSubcommandBuilder
-
aliases
- Specified by:
aliases
in interfaceSubcommandBuilder
-
requirePermission
- Specified by:
requirePermission
in interfaceSubcommandBuilder
-
description
- Specified by:
description
in interfaceSubcommandBuilder
-
inDepthDescription
- Specified by:
inDepthDescription
in interfaceSubcommandBuilder
-
requiredArgument
- Specified by:
requiredArgument
in interfaceSubcommandBuilder
-
optionalArgument
- Specified by:
optionalArgument
in interfaceSubcommandBuilder
-
onCommand
- Specified by:
onCommand
in interfaceSubcommandBuilder
-
onTabComplete
- Specified by:
onTabComplete
in interfaceSubcommandBuilder
-
build
- Specified by:
build
in interfaceSubcommandBuilder
-