Class EntitySelectorArgument.OnePlayer
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<org.bukkit.entity.Player>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<org.bukkit.entity.Player, Argument<org.bukkit.entity.Player>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<org.bukkit.entity.Player>
dev.jorel.commandapi.arguments.EntitySelectorArgument.OnePlayer
- All Implemented Interfaces:
BukkitExecutable<Argument<org.bukkit.entity.Player>>, ChainableBuilder<Argument<org.bukkit.entity.Player>>, PlatformExecutable<Argument<org.bukkit.entity.Player>, org.bukkit.command.CommandSender>
- Enclosing class:
EntitySelectorArgument
An argument that represents a single player
- Since:
- 1.3
- API Note:
- Returns a
Playerobject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionArgument<org.bukkit.entity.Player> getEntityNames(Object argument) CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> Class<org.bukkit.entity.Player> <CommandSourceStack>
org.bukkit.entity.PlayerparseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, CommandArguments previousArgs) voidsetExecutor(CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> arg0) Methods inherited from class AbstractArgument
combineWith, copyPermissionsAndRequirements, getArgumentPermission, getCombinedArguments, getHelpString, getIncludedSuggestions, getNodeName, getOverriddenSuggestions, getRawType, getRawTypeSupplier, getRequirements, hasCombinedArguments, includeSuggestions, isListed, isOptional, replaceSuggestions, setListed, setOptional, toString, withPermission, withPermission, withRequirementMethods inherited from class AbstractArgumentTree
then, thenNested, thenNestedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface BukkitExecutable
executes, executes, executes, executes, executesCommandBlock, executesCommandBlock, executesCommandBlock, executesCommandBlock, executesConsole, executesConsole, executesConsole, executesConsole, executesEntity, executesEntity, executesEntity, executesEntity, executesFeedbackForwarding, executesFeedbackForwarding, executesFeedbackForwarding, executesFeedbackForwarding, executesNative, executesNative, executesNative, executesNative, executesPlayer, executesPlayer, executesPlayer, executesPlayer, executesProxy, executesProxy, executesProxy, executesProxy, executesRemoteConsole, executesRemoteConsole, executesRemoteConsole, executesRemoteConsoleModifier and TypeMethodDescriptiondefault Argument<org.bukkit.entity.Player> executes(CommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executes(CommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executes(ResultingCommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executes(ResultingCommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesConsole(ConsoleCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesEntity(EntityCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesEntity(EntityResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesNative(NativeCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesNative(NativeResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesPlayer(PlayerCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesPlayer(PlayerResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesProxy(ProxyCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> executesProxy(ProxyResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderdefault Argument<org.bukkit.entity.Player> Adds an executor to the current command builderMethods inherited from interface PlatformExecutable
getExecutor
-
Field Details
-
executor
protected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> executor
-
-
Constructor Details
-
OnePlayer
An argument that represents a single player- Parameters:
nodeName- the name of the node for this argument
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<org.bukkit.entity.Player, Argument<org.bukkit.entity.Player>, Argument<?>, org.bukkit.command.CommandSender>
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<org.bukkit.entity.Player, Argument<org.bukkit.entity.Player>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> org.bukkit.entity.Player parseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classAbstractArgument<org.bukkit.entity.Player, Argument<org.bukkit.entity.Player>, Argument<?>, org.bukkit.command.CommandSender>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityNames
- Overrides:
getEntityNamesin classAbstractArgument<org.bukkit.entity.Player, Argument<org.bukkit.entity.Player>, Argument<?>, org.bukkit.command.CommandSender>
-
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
-