Package dev.jorel.commandapi.arguments
Class FunctionArgument
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<FunctionWrapper[]>,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<FunctionWrapper[],Argument<FunctionWrapper[]>,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<FunctionWrapper[]>
dev.jorel.commandapi.arguments.SafeOverrideableArgument<FunctionWrapper[],org.bukkit.NamespacedKey>
dev.jorel.commandapi.arguments.FunctionArgument
- All Implemented Interfaces:
CustomProvidedArgument,SafeOverrideable<FunctionWrapper[],,org.bukkit.NamespacedKey, Argument<FunctionWrapper[]>, Argument<?>, org.bukkit.command.CommandSender> BukkitExecutable<Argument<FunctionWrapper[]>>,ChainableBuilder<Argument<FunctionWrapper[]>>,PlatformExecutable<Argument<FunctionWrapper[]>,org.bukkit.command.CommandSender>
public class FunctionArgument
extends SafeOverrideableArgument<FunctionWrapper[],org.bukkit.NamespacedKey>
implements CustomProvidedArgument
An argument that represents Minecraft functions and tags
- Since:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> <CommandSourceStack>
FunctionWrapper[]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.SafeOverrideableArgument
fromKey, getMapperMethods 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.ChainableBuilder
instanceMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutorMethods inherited from interface dev.jorel.commandapi.arguments.SafeOverrideable
includeSafeSuggestions, includeSuggestions, replaceSafeSuggestions, replaceSuggestions
-
Field Details
-
executor
protected CommandAPIExecutor<org.bukkit.command.CommandSender,AbstractCommandSender<? extends org.bukkit.command.CommandSender>> executor
-
-
Constructor Details
-
FunctionArgument
A Minecraft function. Plugin commands which plan to be used INSIDE a Minecraft a function MUST be registered in the onLoad() method of your plugin, NOT in the onEnable() method!- Parameters:
nodeName- the name of the node for this argument
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<FunctionWrapper[],Argument<FunctionWrapper[]>, Argument<?>, org.bukkit.command.CommandSender>
-
getSuggestionProvider
- Specified by:
getSuggestionProviderin interfaceCustomProvidedArgument
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<FunctionWrapper[],Argument<FunctionWrapper[]>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> FunctionWrapper[] parseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classAbstractArgument<FunctionWrapper[],Argument<FunctionWrapper[]>, 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
-