Class RecipeArgument
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, dev.jorel.commandapi.arguments.Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<org.bukkit.inventory.Recipe, dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, dev.jorel.commandapi.arguments.Argument<?>, org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>
dev.jorel.commandapi.arguments.SafeOverrideableArgument<org.bukkit.inventory.Recipe, org.bukkit.inventory.Recipe>
dev.jorel.commandapi.arguments.RecipeArgument
- All Implemented Interfaces:
dev.jorel.commandapi.arguments.CustomProvidedArgument, dev.jorel.commandapi.arguments.SafeOverrideable<org.bukkit.inventory.Recipe, org.bukkit.inventory.Recipe, dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, dev.jorel.commandapi.arguments.Argument<?>, org.bukkit.command.CommandSender>, dev.jorel.commandapi.BukkitExecutable<dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>>, dev.jorel.commandapi.ChainableBuilder<dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>>, dev.jorel.commandapi.PlatformExecutable<dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, org.bukkit.command.CommandSender>
public class RecipeArgument
extends dev.jorel.commandapi.arguments.SafeOverrideableArgument<org.bukkit.inventory.Recipe, org.bukkit.inventory.Recipe>
implements dev.jorel.commandapi.arguments.CustomProvidedArgument
An argument that represents the Bukkit Recipe object
- Since:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected dev.jorel.commandapi.CommandAPIExecutor<org.bukkit.command.CommandSender, dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe> dev.jorel.commandapi.arguments.CommandAPIArgumentTypedev.jorel.commandapi.CommandAPIExecutor<org.bukkit.command.CommandSender, dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender>> Class<org.bukkit.inventory.Recipe> dev.jorel.commandapi.arguments.SuggestionProviders<CommandSourceStack>
org.bukkit.inventory.RecipeparseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, dev.jorel.commandapi.executors.CommandArguments previousArgs) voidsetExecutor(dev.jorel.commandapi.CommandAPIExecutor<org.bukkit.command.CommandSender, dev.jorel.commandapi.commandsenders.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.Argument
instanceMethods inherited from class dev.jorel.commandapi.arguments.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 dev.jorel.commandapi.AbstractArgumentTree
then, thenNested, thenNestedMethods inherited from class 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 dev.jorel.commandapi.CommandAPIExecutor<org.bukkit.command.CommandSender, dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender>> executor
-
-
Constructor Details
-
RecipeArgument
A Recipe argument. Represents a Bukkit Recipe or ComplexRecipe- Parameters:
nodeName- the name of the node for this argument
-
-
Method Details
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classdev.jorel.commandapi.arguments.AbstractArgument<org.bukkit.inventory.Recipe, dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, dev.jorel.commandapi.arguments.Argument<?>, org.bukkit.command.CommandSender>
-
getSuggestionProvider
public dev.jorel.commandapi.arguments.SuggestionProviders getSuggestionProvider()- Specified by:
getSuggestionProviderin interfacedev.jorel.commandapi.arguments.CustomProvidedArgument
-
getArgumentType
public dev.jorel.commandapi.arguments.CommandAPIArgumentType getArgumentType()- Specified by:
getArgumentTypein classdev.jorel.commandapi.arguments.AbstractArgument<org.bukkit.inventory.Recipe, dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, dev.jorel.commandapi.arguments.Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> org.bukkit.inventory.Recipe parseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, dev.jorel.commandapi.executors.CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classdev.jorel.commandapi.arguments.AbstractArgument<org.bukkit.inventory.Recipe, dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe>, dev.jorel.commandapi.arguments.Argument<?>, org.bukkit.command.CommandSender>- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getExecutor
public dev.jorel.commandapi.CommandAPIExecutor<org.bukkit.command.CommandSender, dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender>> getExecutor() -
setExecutor
public void setExecutor(dev.jorel.commandapi.CommandAPIExecutor<org.bukkit.command.CommandSender, dev.jorel.commandapi.commandsenders.AbstractCommandSender<? extends org.bukkit.command.CommandSender>> arg0) -
clearExecutors
public dev.jorel.commandapi.arguments.Argument<org.bukkit.inventory.Recipe> clearExecutors()
-