Uses of Class
dev.jorel.commandapi.arguments.Argument
Packages that use Argument
Package
Description
Classes to be used as arguments for commands
Classes which are the exceptions raised during the execution of the Command API
-
Uses of Argument in dev.jorel.commandapi
Methods in dev.jorel.commandapi that return types with arguments of type ArgumentModifier and TypeMethodDescriptionCommandAPICommand.getArguments()Returns the list of arguments that this command hasMethods in dev.jorel.commandapi with parameters of type ArgumentModifier and TypeMethodDescriptionstatic voidConverter.convert(org.bukkit.plugin.java.JavaPlugin plugin, String cmdName, Argument<?>... arguments) Convert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commandsstatic com.mojang.brigadier.builder.RequiredArgumentBuilderBrigadier.fromArgument(Argument argument) Constructs a RequiredArgumentBuilder from a given argumentCommandAPICommand.withArguments(Argument<?>... args) Appends the argument(s) to the current command builderMethod parameters in dev.jorel.commandapi with type arguments of type ArgumentModifier and TypeMethodDescriptionstatic voidConvert the provided command name with its list of arguments into a CommandAPI-compatible commandstatic voidConverter.convert(org.bukkit.plugin.java.JavaPlugin plugin, String cmdName, List<Argument<?>> arguments) Convert a command stated in Plugin's plugin.yml file into CommandAPI-compatible commandsstatic com.mojang.brigadier.builder.RequiredArgumentBuilderBrigadier.fromArgument(List<Argument> args, String nodeName) Constructs a RequiredArgumentBuilder from a given argument within a command declaration.static com.mojang.brigadier.RedirectModifierBrigadier.fromPredicate(BiPredicate<org.bukkit.command.CommandSender, Object[]> predicate, List<Argument> args) Constructs a RedirectModifier from a predicate that uses a command sender and some arguments.static Object[]Brigadier.parseArguments(com.mojang.brigadier.context.CommandContext cmdCtx, List<Argument> args) Parses arguments into their respective objects with a given command context.voidCommandAPICommand.setArguments(List<Argument<?>> args) Sets the arguments that this command hasstatic com.mojang.brigadier.suggestion.SuggestionProviderBrigadier.toSuggestions(String nodeName, List<Argument> args) Converts an argument name and a list of arguments to a Brigadier SuggestionProviderCommandAPICommand.withArguments(List<Argument<?>> args) Appends the arguments to the current command builderConstructors in dev.jorel.commandapi with parameters of type ArgumentModifierConstructorDescriptionArgumentTree(Argument<?> argument) Instantiates anArgumentTreewith an underlying argument. -
Uses of Argument in dev.jorel.commandapi.arguments
Classes in dev.jorel.commandapi.arguments with type parameters of type ArgumentModifier and TypeInterfaceDescriptioninterfaceIPreviewable<T extends Argument<?>,A> An interface representing that the argument can be previewed using Minecraft's chat preview feature.Subclasses of Argument in dev.jorel.commandapi.argumentsModifier and TypeClassDescriptionclassAn argument that represents the Bukkit Advancement objectclassAn argument that represents chat with entity selectorsclassAn argument that represents raw JSON textclassAn argument that represents a yaw angle, measured in degrees with float number.classAn argument that represents x, y and z axes as an EnumSet of AxisclassAn argument that represents the Bukkit Biome objectclassAn argument that represents aPredicate<Block>classAn argument that represents the Bukkit BlockData objectclassAn argument that represents primitive Java booleansclassAn argument that represents chat with entity selectorsclassAn argument that represents the Bukkit ChatColor objectclassAn argument that represents raw JSON textclassCustomArgument<T,B> An argument that represents any custom objectclassAn argument that represents primitive Java doublesclassAn argument that represents the Bukkit Enchantment objectclassAn argument that represents a selection of entitiesclassAn argument that represents the Bukkit EntityType objectclassAn argument that represents the Bukkit Environment objectclassAn argument that represents primitive Java floatsclassAn argument that represents a range of float valuesclassAn argument that represents Minecraft functions and tagsclassAn argument that represents arbitrary stringsclassAn argument that represents primitive Java intsclassAn argument that represents a range of integer valuesclassAn argument that represents the Bukkit ItemStack objectclassAn argument that represents aPredicate<ItemStack>classListArgument<T>An argument that accepts a list of objectsclassA pseudo-argument representing a single literal stringclassAn argument that represents the BukkitLocationobject in x and z directionsclassAn argument that represents the BukkitLocationobjectclassAn argument that represents primitive Java longsclassAn argument that represents the Bukkit LootTable objectclassAn argument that represents Minecraft scoreboard math operationsclassAn argument that represents multiple LiteralArgumentsclassAn argument that represents a Minecraft resource location (or namespaced key) in the form namespace:key.classNBTCompoundArgument<NBTContainer>An argument that represents an NBTContainer from the NBT APIclassAn argument that represents the name of a scoreboard objectiveclassAn argument that represents the name of an objective criteriaclassAn argument that represents the Bukkit Player objectclassAn argument that represents the Bukkit Particle objectclassAn argument that represents the Bukkit Player objectclassAn argument that represents the Bukkit PotionEffectType objectclassAn argument that represents the Bukkit Recipe objectclassAn argument that represents rotation as pitch and yawclassAn interface declaring methods required to override argument suggestionsclassAn argument that represents the Bukkit ScoreboardSlot objectclassAn argument that represents a scoreholder's name, or a collection of scoreholder namesclassAn argument that represents the Bukkit Sound objectclassAn argument that represents a simple StringclassAn argument that represents the name of a scoreboard TeamclassAn argument that represents text, encased in quotesclassAn argument that represents a duration of time in ticksclassAn argument that represents a UUIDMethods in dev.jorel.commandapi.arguments that return ArgumentModifier and TypeMethodDescriptionSafeOverrideableArgument.includeSafeSuggestions(SafeSuggestions<S> suggestions) Includes the suggestions provided with the existing suggestions for this argument.Argument.includeSuggestions(ArgumentSuggestions suggestions) Include suggestions to add to the list of default suggestions represented by this argument.Argument.includeSuggestions(Function<SuggestionInfo, String[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.Argument.includeSuggestionsT(Function<SuggestionInfo, IStringTooltip[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.useincludeSuggestions(ArgumentSuggestions)insteadSafeOverrideableArgument.includeWithSafeSuggestions(Function<SuggestionInfo, S[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.SafeOverrideableArgument.includeWithSafeSuggestionsT(Function<SuggestionInfo, Tooltip<S>[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.SafeOverrideableArgument.replaceSafeSuggestions(SafeSuggestions<S> suggestions) Replaces the suggestions with a safeSafeSuggestionsobject.Argument.replaceSuggestions(ArgumentSuggestions suggestions) Replace the suggestions of this argument.Argument.replaceSuggestions(Function<SuggestionInfo, String[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.usereplaceSuggestions(ArgumentSuggestions)insteadArgument.replaceSuggestionsT(Function<SuggestionInfo, IStringTooltip[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.usereplaceSuggestions(ArgumentSuggestions)insteadSafeOverrideableArgument.replaceWithSafeSuggestions(Function<SuggestionInfo, S[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.SafeOverrideableArgument.replaceWithSafeSuggestionsT(Function<SuggestionInfo, Tooltip<S>[]> suggestions) Deprecated, for removal: This API element is subject to removal in a future version.Argument.setListed(boolean listed) Sets whether this argument will be listed in the Object args[] of the command executorArgument.withPermission(CommandPermission permission) Assigns the given permission as a requirement to execute this command.Argument.withPermission(String permission) Assigns the given permission as a requirement to execute this command.Argument.withRequirement(Predicate<org.bukkit.command.CommandSender> requirement) Adds a requirement that has to be satisfied to use this argument.Constructors in dev.jorel.commandapi.arguments with parameters of type ArgumentModifierConstructorDescriptionCustomArgument(Argument<B> base, CustomArgument.CustomArgumentInfoParser<T, B> parser) Creates a CustomArgument with a valid parser, with an underlying base argument as its parsing implementation. -
Uses of Argument in dev.jorel.commandapi.exceptions
Constructors in dev.jorel.commandapi.exceptions with parameters of type ArgumentModifierConstructorDescriptionGreedyArgumentException(Argument<?>[] arguments) Creates a GreedyArgumentException
includeSuggestions(ArgumentSuggestions)instead