Class EntitySelectorArgument.ManyPlayers
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<Collection>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<Collection, Argument<Collection>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<Collection>
dev.jorel.commandapi.arguments.EntitySelectorArgument.ManyPlayers
- All Implemented Interfaces:
BukkitExecutable<Argument<Collection>>, ChainableBuilder<Argument<Collection>>, PlatformExecutable<Argument<Collection>, org.bukkit.command.CommandSender>
- Enclosing class:
EntitySelectorArgument
An argument that represents many players
- Since:
- 1.3
- API Note:
- Returns a
Collection<Player>object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
ConstructorsConstructorDescriptionManyPlayers(String nodeName) An argument that represents many playersManyPlayers(String nodeName, boolean allowEmpty) An argument that represents many players -
Method Summary
Modifier and TypeMethodDescriptiongetEntityNames(Object argument) CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> <CommandSourceStack>
Collection<org.bukkit.entity.Player> parseArgument(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<Collection> executes(CommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<Collection> executes(CommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<Collection> executes(ResultingCommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<Collection> executes(ResultingCommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesConsole(ConsoleCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesEntity(EntityCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesEntity(EntityResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesNative(NativeCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesNative(NativeResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesPlayer(PlayerCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesPlayer(PlayerResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesProxy(ProxyCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> executesProxy(ProxyResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> Adds an executor to the current command builderdefault Argument<Collection> 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
-
ManyPlayers
An argument that represents many players- Parameters:
nodeName- the name of the node for this argument
-
ManyPlayers
An argument that represents many players- Parameters:
nodeName- the name of the node for this argument * @param allowEmpty whether this entity selector should allow no entities found, or should throw an error instead
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<Collection, Argument<Collection>, Argument<?>, org.bukkit.command.CommandSender>
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<Collection, Argument<Collection>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> Collection<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<Collection, Argument<Collection>, Argument<?>, org.bukkit.command.CommandSender>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getEntityNames
- Overrides:
getEntityNamesin classAbstractArgument<Collection, Argument<Collection>, 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
-