Class MapArgument<K,V>
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<LinkedHashMap>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<LinkedHashMap, Argument<LinkedHashMap>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<LinkedHashMap>
dev.jorel.commandapi.arguments.MapArgument<K,V>
- Type Parameters:
K- The type of keys this map will containV- The type of values this map will contain
- All Implemented Interfaces:
GreedyArgument, BukkitExecutable<Argument<LinkedHashMap>>, ChainableBuilder<Argument<LinkedHashMap>>, PlatformExecutable<Argument<LinkedHashMap>, org.bukkit.command.CommandSender>
An argument that represents a key-value pair.
- Since:
- 9.0.0
- API Note:
- Returns a
LinkedHashMapobject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Method Summary
Modifier and TypeMethodDescriptionCommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> <Source> LinkedHashMap<K, V> parseArgument(com.mojang.brigadier.context.CommandContext<Source> 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, getEntityNames, 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<LinkedHashMap> executes(CommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<LinkedHashMap> executes(CommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<LinkedHashMap> executes(ResultingCommandExecutionInfo executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<LinkedHashMap> executes(ResultingCommandExecutor executor, ExecutorType... types) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesConsole(ConsoleCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesEntity(EntityCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesEntity(EntityResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesNative(NativeCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesNative(NativeResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesPlayer(PlayerCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesPlayer(PlayerResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesProxy(ProxyCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> executesProxy(ProxyResultingCommandExecutor executor) Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> Adds an executor to the current command builderdefault Argument<LinkedHashMap> 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
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<LinkedHashMap, Argument<LinkedHashMap>, Argument<?>, org.bukkit.command.CommandSender>
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<LinkedHashMap, Argument<LinkedHashMap>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <Source> LinkedHashMap<K,V> parseArgument(com.mojang.brigadier.context.CommandContext<Source> cmdCtx, String key, CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classAbstractArgument<LinkedHashMap, Argument<LinkedHashMap>, Argument<?>, org.bukkit.command.CommandSender>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
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
-