Package dev.jorel.commandapi
Class CommandTree
java.lang.Object
dev.jorel.commandapi.ExecutableCommand<CommandTree,com.velocitypowered.api.command.CommandSource>
dev.jorel.commandapi.AbstractCommandTree<CommandTree,Argument<?>,com.velocitypowered.api.command.CommandSource>
dev.jorel.commandapi.CommandTree
- All Implemented Interfaces:
ChainableBuilder<CommandTree>,PlatformExecutable<CommandTree,,com.velocitypowered.api.command.CommandSource> VelocityExecutable<CommandTree>
public class CommandTree
extends AbstractCommandTree<CommandTree,Argument<?>,com.velocitypowered.api.command.CommandSource>
implements VelocityExecutable<CommandTree>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> Fields inherited from class dev.jorel.commandapi.ExecutableCommand
meta -
Constructor Summary
ConstructorsConstructorDescriptionCommandTree(String commandName) Creates a main root node for a command tree with a given command name -
Method Summary
Modifier and TypeMethodDescriptionCommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> instance()voidRegisters the command with the given plugin objectvoidRegisters the command with a given namespacevoidsetExecutor(CommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> arg0) Methods inherited from class dev.jorel.commandapi.AbstractCommandTree
then, thenNested, thenNestedMethods inherited from class dev.jorel.commandapi.ExecutableCommand
getAliases, getFullDescription, getName, getPermission, getRequirements, getShortDescription, getUsage, override, register, setAliases, setPermission, setRequirements, withAliases, withFullDescription, withHelp, withoutPermission, withoutPermission, withPermission, withPermission, withRequirement, withShortDescription, withUsageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutorMethods inherited from interface dev.jorel.commandapi.VelocityExecutable
executes, executes, executes, executes, executesConsole, executesConsole, executesConsole, executesConsole, executesPlayer, executesPlayer, executesPlayer, executesPlayer
-
Field Details
-
executor
protected CommandAPIExecutor<com.velocitypowered.api.command.CommandSource,AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> executor
-
-
Constructor Details
-
CommandTree
Creates a main root node for a command tree with a given command name- Parameters:
commandName- The name of the command to create
-
-
Method Details
-
register
Registers the command with a given namespace- Overrides:
registerin classAbstractCommandTree<CommandTree,Argument<?>, com.velocitypowered.api.command.CommandSource> - Parameters:
namespace- The namespace of this command. This cannot be null or empty
-
register
Registers the command with the given plugin object- Parameters:
plugin- The plugin instance used to determine this command's namespace
-
instance
- Specified by:
instancein interfaceChainableBuilder<CommandTree>
-
getExecutor
public CommandAPIExecutor<com.velocitypowered.api.command.CommandSource,AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> getExecutor() -
setExecutor
public void setExecutor(CommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> arg0) -
clearExecutors
-