Class ConfigKeyValueArgument<A,V,N extends org.core.config.ConfigurationNode.KnownParser<String,V>>
java.lang.Object
org.ships.commands.argument.arguments.config.ConfigKeyValueArgument<A,V,N>
- All Implemented Interfaces:
org.core.command.argument.CommandArgument<V>,org.core.command.argument.ParseCommandArgument<V>,org.core.command.argument.SuggestCommandArgument<V>
-
Constructor Summary
ConstructorsConstructorDescriptionConfigKeyValueArgument(String id, org.core.command.argument.ParseCommandArgument<? extends DedicatedNode<A, V, N>> supplier) -
Method Summary
Modifier and TypeMethodDescriptiongetId()org.core.command.argument.CommandArgumentResult<V>parse(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<V> argument) suggest(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<V> argument) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.core.command.argument.CommandArgument
getUsageMethods inherited from interface org.core.command.argument.SuggestCommandArgument
errorMessage
-
Constructor Details
-
ConfigKeyValueArgument
public ConfigKeyValueArgument(String id, org.core.command.argument.ParseCommandArgument<? extends DedicatedNode<A, V, N>> supplier)
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.core.command.argument.CommandArgument<A>
-
parse
public org.core.command.argument.CommandArgumentResult<V> parse(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<V> argument) throws IOException - Specified by:
parsein 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<V> argument) throws org.core.exceptions.NotEnoughArguments - Specified by:
suggestin interfaceorg.core.command.argument.SuggestCommandArgument<A>- Throws:
org.core.exceptions.NotEnoughArguments
-