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 java.lang.Object implements SubcommandBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
alias(java.lang.String alias)
T
aliases(java.lang.String... aliases)
Subcommand
build()
T
description(java.lang.String description)
T
inDepthDescription(java.lang.String... lines)
T
onCommand(java.util.function.BiConsumer<CMDSender,Arguments> executor)
T
onTabComplete(java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>> resolver)
T
optionalArgument(java.lang.String name, java.lang.String description)
T
requiredArgument(java.lang.String name, java.lang.String description)
T
requirePermission(java.lang.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 Detail
-
alias
public T alias(java.lang.String alias)
- Specified by:
alias
in interfaceSubcommandBuilder
-
aliases
public T aliases(java.lang.String... aliases)
- Specified by:
aliases
in interfaceSubcommandBuilder
-
requirePermission
public T requirePermission(java.lang.String permission)
- Specified by:
requirePermission
in interfaceSubcommandBuilder
-
description
public T description(java.lang.String description)
- Specified by:
description
in interfaceSubcommandBuilder
-
inDepthDescription
public T inDepthDescription(java.lang.String... lines)
- Specified by:
inDepthDescription
in interfaceSubcommandBuilder
-
requiredArgument
public T requiredArgument(java.lang.String name, java.lang.String description)
- Specified by:
requiredArgument
in interfaceSubcommandBuilder
-
optionalArgument
public T optionalArgument(java.lang.String name, java.lang.String description)
- Specified by:
optionalArgument
in interfaceSubcommandBuilder
-
onCommand
public T onCommand(java.util.function.BiConsumer<CMDSender,Arguments> executor)
- Specified by:
onCommand
in interfaceSubcommandBuilder
-
onTabComplete
public T onTabComplete(java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>> resolver)
- Specified by:
onTabComplete
in interfaceSubcommandBuilder
-
build
public Subcommand build()
- Specified by:
build
in interfaceSubcommandBuilder
-
-