Package dev.jorel.commandapi.arguments
Class BiomeArgument.NamespacedKey
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<org.bukkit.NamespacedKey>,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.AbstractArgument<org.bukkit.NamespacedKey,Argument<org.bukkit.NamespacedKey>,Argument<?>,org.bukkit.command.CommandSender>
dev.jorel.commandapi.arguments.Argument<org.bukkit.NamespacedKey>
dev.jorel.commandapi.arguments.SafeOverrideableArgument<org.bukkit.NamespacedKey,org.bukkit.NamespacedKey>
dev.jorel.commandapi.arguments.BiomeArgument.NamespacedKey
- All Implemented Interfaces:
CustomProvidedArgument,SafeOverrideable<org.bukkit.NamespacedKey,,org.bukkit.NamespacedKey, Argument<org.bukkit.NamespacedKey>, Argument<?>, org.bukkit.command.CommandSender> BukkitExecutable<Argument<org.bukkit.NamespacedKey>>,ChainableBuilder<Argument<org.bukkit.NamespacedKey>>,PlatformExecutable<Argument<org.bukkit.NamespacedKey>,org.bukkit.command.CommandSender>
- Enclosing class:
BiomeArgument
public static class BiomeArgument.NamespacedKey
extends SafeOverrideableArgument<org.bukkit.NamespacedKey,org.bukkit.NamespacedKey>
implements CustomProvidedArgument
An argument that represents the Bukkit Biome object
- API Note:
- Returns a
BiomeArgument.NamespacedKeyobject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> -
Constructor Summary
ConstructorsConstructorDescriptionNamespacedKey(String nodeName) Constructs a BiomeArgument with a given node name. -
Method Summary
Modifier and TypeMethodDescriptionArgument<org.bukkit.NamespacedKey> CommandAPIExecutor<org.bukkit.command.CommandSender, AbstractCommandSender<? extends org.bukkit.command.CommandSender>> Class<org.bukkit.NamespacedKey> <CommandSourceStack>
org.bukkit.NamespacedKeyparseArgument(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
-
NamespacedKey
Constructs a BiomeArgument with a given node name. This BiomeArgument will return aBiomeArgument.NamespacedKey- Parameters:
nodeName- the name of the node for argument
-
-
Method Details
-
getSuggestionProvider
- Specified by:
getSuggestionProviderin interfaceCustomProvidedArgument
-
getPrimitiveType
- Specified by:
getPrimitiveTypein classAbstractArgument<org.bukkit.NamespacedKey,Argument<org.bukkit.NamespacedKey>, Argument<?>, org.bukkit.command.CommandSender>
-
getArgumentType
- Specified by:
getArgumentTypein classAbstractArgument<org.bukkit.NamespacedKey,Argument<org.bukkit.NamespacedKey>, Argument<?>, org.bukkit.command.CommandSender>
-
parseArgument
public <CommandSourceStack> org.bukkit.NamespacedKey parseArgument(com.mojang.brigadier.context.CommandContext<CommandSourceStack> cmdCtx, String key, CommandArguments previousArgs) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Specified by:
parseArgumentin classAbstractArgument<org.bukkit.NamespacedKey,Argument<org.bukkit.NamespacedKey>, 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
-