Package dev.jorel.commandapi
Class CommandAPICommand
java.lang.Object
dev.jorel.commandapi.AbstractCommandAPICommand<CommandAPICommand,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.CommandAPICommand
- All Implemented Interfaces:
BukkitExecutable<CommandAPICommand>,ChainableBuilder<CommandAPICommand>,PlatformExecutable<CommandAPICommand,org.bukkit.command.CommandSender>
public class CommandAPICommand
extends AbstractCommandAPICommand<CommandAPICommand,Argument<?>,org.bukkit.command.CommandSender>
implements BukkitExecutable<CommandAPICommand>
-
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>Fields inherited from class dev.jorel.commandapi.AbstractCommandAPICommand
arguments, isConverted, subcommands -
Constructor Summary
ConstructorsConstructorDescriptionCommandAPICommand(dev.jorel.commandapi.CommandMetaData<org.bukkit.command.CommandSender> meta) CommandAPICommand(String commandName) -
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()protected CommandAPICommandnewConcreteCommandAPICommand(dev.jorel.commandapi.CommandMetaData<org.bukkit.command.CommandSender> metaData) 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.AbstractCommandAPICommand
copy, getArguments, getSubcommands, isConverted, register, setArguments, setSubcommands, withArguments, withArguments, withOptionalArguments, withOptionalArguments, withSubcommand, withSubcommandsMethods 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
-
CommandAPICommand
public CommandAPICommand(dev.jorel.commandapi.CommandMetaData<org.bukkit.command.CommandSender> meta) -
CommandAPICommand
-
-
Method Details
-
newConcreteCommandAPICommand
protected CommandAPICommand newConcreteCommandAPICommand(dev.jorel.commandapi.CommandMetaData<org.bukkit.command.CommandSender> metaData) - Specified by:
newConcreteCommandAPICommandin classAbstractCommandAPICommand<CommandAPICommand,Argument<?>, org.bukkit.command.CommandSender>
-
instance
- Specified by:
instancein interfaceChainableBuilder<CommandAPICommand>
-
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
-