Package com.djrapitops.plan.commands.use
Class CommandWithSubcommands.Builder
- java.lang.Object
-
- com.djrapitops.plan.commands.use.Subcommand.Builder<CommandWithSubcommands.Builder>
-
- com.djrapitops.plan.commands.use.CommandWithSubcommands.Builder
-
- All Implemented Interfaces:
SubcommandBuilder
- Enclosing class:
- CommandWithSubcommands
public static class CommandWithSubcommands.Builder extends Subcommand.Builder<CommandWithSubcommands.Builder>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandWithSubcommands
build()
CommandWithSubcommands.Builder
colorScheme(ColorScheme colors)
CommandWithSubcommands.Builder
exceptionHandler(TriConsumer<java.lang.RuntimeException,CMDSender,Arguments> exceptionHandler)
CommandWithSubcommands.Builder
fallback(java.util.function.BiConsumer<CMDSender,Arguments> executor)
CommandWithSubcommands.Builder
fallbackOrHelpFallback(java.util.function.BiPredicate<CMDSender,Arguments> canBeUsed, java.util.function.BiConsumer<CMDSender,Arguments> executor)
CommandWithSubcommands.Builder
subcommand(Subcommand subcommand)
CommandWithSubcommands.Builder
subcommandOnCondition(boolean condition, Subcommand subcommand)
-
Methods inherited from class com.djrapitops.plan.commands.use.Subcommand.Builder
alias, aliases, description, inDepthDescription, onCommand, onTabComplete, optionalArgument, requiredArgument, requirePermission
-
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
-
subcommand
public CommandWithSubcommands.Builder subcommand(Subcommand subcommand)
-
subcommandOnCondition
public CommandWithSubcommands.Builder subcommandOnCondition(boolean condition, Subcommand subcommand)
-
fallback
public CommandWithSubcommands.Builder fallback(java.util.function.BiConsumer<CMDSender,Arguments> executor)
-
fallbackOrHelpFallback
public CommandWithSubcommands.Builder fallbackOrHelpFallback(java.util.function.BiPredicate<CMDSender,Arguments> canBeUsed, java.util.function.BiConsumer<CMDSender,Arguments> executor)
-
exceptionHandler
public CommandWithSubcommands.Builder exceptionHandler(TriConsumer<java.lang.RuntimeException,CMDSender,Arguments> exceptionHandler)
-
colorScheme
public CommandWithSubcommands.Builder colorScheme(ColorScheme colors)
-
build
public CommandWithSubcommands build()
- Specified by:
build
in interfaceSubcommandBuilder
- Overrides:
build
in classSubcommand.Builder<CommandWithSubcommands.Builder>
-
-