Package dev.jorel.commandapi
Class CommandTree
java.lang.Object
dev.jorel.commandapi.AbstractCommandTree<CommandTree,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.CommandTree
- All Implemented Interfaces:
BukkitExecutable<CommandTree>,ChainableBuilder<CommandTree>,PlatformExecutable<CommandTree,org.bukkit.command.CommandSender>
public class CommandTree
extends AbstractCommandTree<CommandTree,Argument<?>,org.bukkit.command.CommandSender>
implements BukkitExecutable<CommandTree>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender,AbstractCommandSender<? extends org.bukkit.command.CommandSender>> protected final dev.jorel.commandapi.CommandMetaData<org.bukkit.command.CommandSender> -
Constructor Summary
ConstructorsConstructorDescriptionCommandTree(String commandName) Creates a main root node for a command tree with a given command name -
Method Summary
Modifier and TypeMethodDescriptionString[]CommandAPIExecutor<org.bukkit.command.CommandSender,AbstractCommandSender<? extends org.bukkit.command.CommandSender>> getName()Predicate<org.bukkit.command.CommandSender>String[]getUsage()instance()voidoverride()voidsetAliases(String[] arg0) voidsetExecutor(CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> arg0) voidvoidsetRequirements(Predicate<org.bukkit.command.CommandSender> arg0) withAliases(String... arg0) withFullDescription(String arg0) withoutPermission(String arg0) withPermission(String arg0) withRequirement(Predicate<org.bukkit.command.CommandSender> arg0) withShortDescription(String arg0) Methods inherited from class dev.jorel.commandapi.AbstractCommandTree
register, thenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.BukkitExecutable
executes, executes, executes, executes, executesCommandBlock, executesCommandBlock, executesCommandBlock, executesCommandBlock, executesConsole, executesConsole, executesConsole, executesConsole, executesEntity, executesEntity, executesEntity, executesEntity, executesNative, executesNative, executesNative, executesNative, executesPlayer, executesPlayer, executesPlayer, executesPlayer, executesProxy, executesProxy, executesProxy, executesProxyMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutor
-
Field Details
-
meta
-
executor
protected CommandAPIExecutor<org.bukkit.command.CommandSender,AbstractCommandSender<? extends org.bukkit.command.CommandSender>> 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
-
instance
- Specified by:
instancein interfaceChainableBuilder<CommandTree>
-
getName
-
withPermission
-
withPermission
-
withoutPermission
-
withoutPermission
-
withRequirement
-
withAliases
-
getPermission
-
setPermission
-
getAliases
-
setAliases
-
getRequirements
-
setRequirements
-
getShortDescription
-
withShortDescription
-
getFullDescription
-
withFullDescription
-
withUsage
-
getUsage
-
withHelp
-
override
public void override() -
getExecutor
public CommandAPIExecutor<org.bukkit.command.CommandSender,AbstractCommandSender<? extends org.bukkit.command.CommandSender>> getExecutor() -
setExecutor
public void setExecutor(CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> arg0) -
clearExecutors
-