Class NamespacedKeyArgument.Parser<C>
java.lang.Object
cloud.commandframework.bukkit.argument.NamespacedKeyArgument.Parser<C>
- Type Parameters:
C- sender type
- All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<C,org.bukkit.NamespacedKey>
- Enclosing class:
- NamespacedKeyArgument<C>
public static final class NamespacedKeyArgument.Parser<C>
extends Object
implements cloud.commandframework.arguments.parser.ArgumentParser<C,org.bukkit.NamespacedKey>
Parser for
NamespacedKey.- Since:
- 1.7.0
-
Field Summary
Fields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
DEFAULT_ARGUMENT_COUNT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<org.bukkit.NamespacedKey>parse(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull Queue<@NonNull String> inputQueue) suggestions(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull String input) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
getRequestedArgumentCount, isContextFree, map
-
Constructor Details
-
Parser
Create a newNamespacedKeyArgument.Parser.- Parameters:
requireExplicitNamespace- whether to require an explicit namespacedefaultNamespace- default namespace- Since:
- 1.7.0
-
-
Method Details
-
parse
public @NonNull cloud.commandframework.arguments.parser.ArgumentParseResult<org.bukkit.NamespacedKey> parse(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull Queue<@NonNull String> inputQueue) - Specified by:
parsein interfacecloud.commandframework.arguments.parser.ArgumentParser<C,org.bukkit.NamespacedKey>
-
suggestions
public @NonNull List<@NonNull String> suggestions(@NonNull cloud.commandframework.context.CommandContext<C> commandContext, @NonNull String input) - Specified by:
suggestionsin interfacecloud.commandframework.arguments.parser.ArgumentParser<C,org.bukkit.NamespacedKey>
-