Class ChatArgument
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<net.kyori.adventure.chat.SignedMessage>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<net.kyori.adventure.chat.SignedMessage, Argument<net.kyori.adventure.chat.SignedMessage>, Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<net.kyori.adventure.chat.SignedMessage>
dev.jorel.commandapi.arguments.ChatArgument
- All Implemented Interfaces:
GreedyArgument, BukkitExecutable<Argument<net.kyori.adventure.chat.SignedMessage>>, ChainableBuilder<Argument<net.kyori.adventure.chat.SignedMessage>>, PlatformExecutable<Argument<net.kyori.adventure.chat.SignedMessage>, org.bukkit.command.CommandSender>
public class ChatArgument
extends Argument<net.kyori.adventure.chat.SignedMessage>
implements GreedyArgument
An argument that represents chat with entity selectors
- Since:
- 5.10
- API Note:
- Returns a
SignedMessageobject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
ConstructorsConstructorDescriptionChatArgument(String nodeName) Constructs a Chat argument with a given node name. -
Method Summary
Modifier and TypeMethodDescriptionArgument<net.kyori.adventure.chat.SignedMessage> CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> Class<net.kyori.adventure.chat.SignedMessage> <CommandSourceStack>
net.kyori.adventure.chat.SignedMessageparseArgument(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, 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, executesRemoteConsoleMethods inherited from interface PlatformExecutable
getExecutor
-
Field Details
-
executor
protected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> executor
-
-
Constructor Details
-
ChatArgument
Constructs a Chat argument with a given node name. Represents fancy greedy strings that can parse entity selectors- Parameters:
nodeName- the name of the node for argument
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<net.kyori.adventure.chat.SignedMessage, Argument<net.kyori.adventure.chat.SignedMessage>, Argument<?>, org.bukkit.command.CommandSender>
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<net.kyori.adventure.chat.SignedMessage, Argument<net.kyori.adventure.chat.SignedMessage>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> net.kyori.adventure.chat.SignedMessage parseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classAbstractArgument<net.kyori.adventure.chat.SignedMessage, Argument<net.kyori.adventure.chat.SignedMessage>, 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
-