Package com.djrapitops.plan.commands.use
Class Subcommand
- java.lang.Object
-
- com.djrapitops.plan.commands.use.Subcommand
-
- Direct Known Subclasses:
CommandWithSubcommands
public class Subcommand extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Subcommand.ArgumentDescriptor
static class
Subcommand.Builder<T extends SubcommandBuilder>
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubcommandBuilder
builder()
java.util.Set<java.lang.String>
getAliases()
java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>>
getArgumentResolver()
java.util.List<Subcommand.ArgumentDescriptor>
getArguments()
java.lang.String
getArgumentsAsString()
java.lang.String
getDescription()
java.util.function.BiConsumer<CMDSender,Arguments>
getExecutor()
java.util.List<java.lang.String>
getInDepthDescription()
java.lang.String
getPrimaryAlias()
java.util.Set<java.lang.String>
getRequiredPermissions()
-
-
-
Method Detail
-
builder
public static SubcommandBuilder builder()
-
getPrimaryAlias
public java.lang.String getPrimaryAlias()
-
getAliases
public java.util.Set<java.lang.String> getAliases()
-
getRequiredPermissions
public java.util.Set<java.lang.String> getRequiredPermissions()
-
getDescription
public java.lang.String getDescription()
-
getInDepthDescription
public java.util.List<java.lang.String> getInDepthDescription()
-
getArguments
public java.util.List<Subcommand.ArgumentDescriptor> getArguments()
-
getArgumentResolver
public java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>> getArgumentResolver()
-
getArgumentsAsString
public java.lang.String getArgumentsAsString()
-
-