Package dev.jorel.commandapi.arguments
Class ChatComponentArgument
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<net.md_5.bungee.api.chat.BaseComponent[]>,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<net.md_5.bungee.api.chat.BaseComponent[],Argument<net.md_5.bungee.api.chat.BaseComponent[]>,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<net.md_5.bungee.api.chat.BaseComponent[]>
dev.jorel.commandapi.arguments.ChatComponentArgument
- All Implemented Interfaces:
BukkitExecutable<Argument<net.md_5.bungee.api.chat.BaseComponent[]>>,ChainableBuilder<Argument<net.md_5.bungee.api.chat.BaseComponent[]>>,PlatformExecutable<Argument<net.md_5.bungee.api.chat.BaseComponent[]>,org.bukkit.command.CommandSender>
An argument that represents raw JSON text
- Since:
- 1.5
- API Note:
- Returns a
BaseComponent[]object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
ConstructorsConstructorDescriptionChatComponentArgument(String nodeName) Constructs a ChatComponent argument with a given node name. -
Method Summary
Modifier and TypeMethodDescriptionArgument<net.md_5.bungee.api.chat.BaseComponent[]> CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> Class<net.md_5.bungee.api.chat.BaseComponent[]> <CommandSourceStack>
net.md_5.bungee.api.chat.BaseComponent[]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 dev.jorel.commandapi.arguments.AbstractArgument
combineWith, copyPermissionsAndRequirements, getArgumentPermission, getCombinedArguments, getEntityNames, getHelpString, getIncludedSuggestions, getNodeName, getOverriddenSuggestions, getRawType, getRequirements, hasCombinedArguments, includeSuggestions, isListed, isOptional, replaceSuggestions, setListed, setOptional, toString, withPermission, withPermission, withRequirementMethods inherited from class dev.jorel.commandapi.AbstractArgumentTree
thenMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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, executesFeedbackForwarding, executesFeedbackForwarding, executesFeedbackForwarding, executesFeedbackForwarding, executesNative, executesNative, executesNative, executesNative, executesPlayer, executesPlayer, executesPlayer, executesPlayer, executesProxy, executesProxy, executesProxy, executesProxy, executesRemoteConsole, executesRemoteConsole, executesRemoteConsole, executesRemoteConsoleMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutor
-
Field Details
-
executor
protected CommandAPIExecutor<org.bukkit.command.CommandSender,AbstractCommandSender<? extends org.bukkit.command.CommandSender>> executor
-
-
Constructor Details
-
ChatComponentArgument
Constructs a ChatComponent argument with a given node name. Represents raw JSON text, used in Book MetaData, Chat and other various areas of Minecraft- Parameters:
nodeName- the name of the node for argument- See Also:
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<net.md_5.bungee.api.chat.BaseComponent[],Argument<net.md_5.bungee.api.chat.BaseComponent[]>, Argument<?>, org.bukkit.command.CommandSender>
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<net.md_5.bungee.api.chat.BaseComponent[],Argument<net.md_5.bungee.api.chat.BaseComponent[]>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> net.md_5.bungee.api.chat.BaseComponent[] parseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classAbstractArgument<net.md_5.bungee.api.chat.BaseComponent[],Argument<net.md_5.bungee.api.chat.BaseComponent[]>, 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
-