public static class Subcommand.Builder<T extends SubcommandBuilder> extends java.lang.Object implements SubcommandBuilder
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inDepthDescription, requirePermission
public T alias(java.lang.String alias)
alias
in interface SubcommandBuilder
public T aliases(java.lang.String... aliases)
aliases
in interface SubcommandBuilder
public T requirePermission(java.lang.String permission)
requirePermission
in interface SubcommandBuilder
public T description(java.lang.String description)
description
in interface SubcommandBuilder
public T inDepthDescription(java.lang.String... lines)
inDepthDescription
in interface SubcommandBuilder
public T requiredArgument(java.lang.String name, java.lang.String description)
requiredArgument
in interface SubcommandBuilder
public T optionalArgument(java.lang.String name, java.lang.String description)
optionalArgument
in interface SubcommandBuilder
public T onCommand(java.util.function.BiConsumer<CMDSender,Arguments> executor)
onCommand
in interface SubcommandBuilder
public T onTabComplete(java.util.function.BiFunction<CMDSender,Arguments,java.util.List<java.lang.String>> resolver)
onTabComplete
in interface SubcommandBuilder
public Subcommand build()
build
in interface SubcommandBuilder