Class ShipsStructureArgument

java.lang.Object
org.ships.commands.argument.arguments.structure.ShipsStructureArgument
All Implemented Interfaces:
org.core.command.argument.CommandArgument<org.core.world.structure.Structure>, org.core.command.argument.ParseCommandArgument<org.core.world.structure.Structure>, org.core.command.argument.SuggestCommandArgument<org.core.world.structure.Structure>

public class ShipsStructureArgument extends Object implements org.core.command.argument.CommandArgument<org.core.world.structure.Structure>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.core.command.argument.CommandArgumentResult<org.core.world.structure.Structure>
    parse(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<org.core.world.structure.Structure> argument)
     
    suggest(org.core.command.argument.context.CommandContext commandContext, org.core.command.argument.context.CommandArgumentContext<org.core.world.structure.Structure> 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

    • ShipsStructureArgument

      public ShipsStructureArgument(String id)
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface org.core.command.argument.CommandArgument<org.core.world.structure.Structure>
    • parse

      public org.core.command.argument.CommandArgumentResult<org.core.world.structure.Structure> parse(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<org.core.world.structure.Structure> argument) throws IOException
      Specified by:
      parse in interface org.core.command.argument.ParseCommandArgument<org.core.world.structure.Structure>
      Throws:
      IOException
    • suggest

      public Collection<String> suggest(org.core.command.argument.context.CommandContext commandContext, org.core.command.argument.context.CommandArgumentContext<org.core.world.structure.Structure> argument)
      Specified by:
      suggest in interface org.core.command.argument.SuggestCommandArgument<org.core.world.structure.Structure>