Class ConfigKeyArgument<A,V,N extends org.core.config.ConfigurationNode.KnownParser<?,V>>
java.lang.Object
org.ships.commands.argument.arguments.config.ConfigKeyArgument<A,V,N>
- All Implemented Interfaces:
org.core.command.argument.CommandArgument<DedicatedNode<A,
,V, N>> org.core.command.argument.ParseCommandArgument<DedicatedNode<A,
,V, N>> org.core.command.argument.SuggestCommandArgument<DedicatedNode<A,
V, N>>
public class ConfigKeyArgument<A,V,N extends org.core.config.ConfigurationNode.KnownParser<?,V>>
extends Object
implements org.core.command.argument.CommandArgument<DedicatedNode<A,V,N>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull String
getId()
org.core.command.argument.CommandArgumentResult<DedicatedNode<A,
V, N>> parse
(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<DedicatedNode<A, V, N>> argument) suggest
(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<DedicatedNode<A, V, N>> argument) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.core.command.argument.CommandArgument
getUsage
Methods inherited from interface org.core.command.argument.SuggestCommandArgument
errorMessage
-
Constructor Details
-
ConfigKeyArgument
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.core.command.argument.CommandArgument<A>
-
parse
public org.core.command.argument.CommandArgumentResult<DedicatedNode<A,V, parseN>> (org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<DedicatedNode<A, V, throws IOExceptionN>> argument) - Specified by:
parse
in interfaceorg.core.command.argument.ParseCommandArgument<A>
- Throws:
IOException
-
suggest
public List<String> suggest(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<DedicatedNode<A, V, N>> argument) - Specified by:
suggest
in interfaceorg.core.command.argument.SuggestCommandArgument<A>
-