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 Details

  • Method Details

    • getId

      @NotNull public @NotNull String getId()
      Specified by:
      getId in interface org.core.command.argument.CommandArgument<A>
    • parse

      public 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) throws IOException
      Specified by:
      parse in interface org.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 interface org.core.command.argument.SuggestCommandArgument<A>