Package dev.jorel.commandapi
Class CommandAPICommand
java.lang.Object
dev.jorel.commandapi.ExecutableCommand<CommandAPICommand,com.velocitypowered.api.command.CommandSource>
dev.jorel.commandapi.AbstractCommandAPICommand<CommandAPICommand,Argument<?>,com.velocitypowered.api.command.CommandSource>
dev.jorel.commandapi.CommandAPICommand
- All Implemented Interfaces:
ChainableBuilder<CommandAPICommand>,PlatformExecutable<CommandAPICommand,,com.velocitypowered.api.command.CommandSource> VelocityExecutable<CommandAPICommand>
public class CommandAPICommand
extends AbstractCommandAPICommand<CommandAPICommand,Argument<?>,com.velocitypowered.api.command.CommandSource>
implements VelocityExecutable<CommandAPICommand>
-
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.AbstractCommandAPICommand
arguments, isConverted, subcommandsFields inherited from class dev.jorel.commandapi.ExecutableCommand
meta -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCommandAPICommand(dev.jorel.commandapi.CommandMetaData<com.velocitypowered.api.command.CommandSource> metaData) Creates a new Command builderCommandAPICommand(String commandName) Creates a new command builder -
Method Summary
Modifier and TypeMethodDescriptionCommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> instance()protected CommandAPICommandnewConcreteCommandAPICommand(dev.jorel.commandapi.CommandMetaData<com.velocitypowered.api.command.CommandSource> metaData) 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.AbstractCommandAPICommand
copy, getArguments, getSubcommands, isConverted, setArguments, setSubcommands, withArguments, withArguments, withOptionalArguments, withOptionalArguments, withSubcommand, withSubcommandsMethods 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
-
CommandAPICommand
Creates a new command builder- Parameters:
commandName- The name of the command to create
-
CommandAPICommand
protected CommandAPICommand(dev.jorel.commandapi.CommandMetaData<com.velocitypowered.api.command.CommandSource> metaData) Creates a new Command builder- Parameters:
metaData- The metadata of the command to create
-
-
Method Details
-
newConcreteCommandAPICommand
protected CommandAPICommand newConcreteCommandAPICommand(dev.jorel.commandapi.CommandMetaData<com.velocitypowered.api.command.CommandSource> metaData) - Specified by:
newConcreteCommandAPICommandin classAbstractCommandAPICommand<CommandAPICommand,Argument<?>, com.velocitypowered.api.command.CommandSource>
-
register
Registers the command with a given namespace- Overrides:
registerin classAbstractCommandAPICommand<CommandAPICommand,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<CommandAPICommand>
-
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
-