Class ShipTeleportLocationArgument

java.lang.Object
org.ships.commands.argument.arguments.ShipTeleportLocationArgument
All Implemented Interfaces:
org.core.command.argument.CommandArgument<String>, org.core.command.argument.ParseCommandArgument<String>, org.core.command.argument.SuggestCommandArgument<String>

public class ShipTeleportLocationArgument extends Object implements org.core.command.argument.CommandArgument<String>
  • Constructor Details

    • ShipTeleportLocationArgument

      public ShipTeleportLocationArgument(String id, org.core.command.argument.ParseCommandArgument<? extends TeleportToVessel> toVessel)
  • Method Details

    • fromArgumentAt

      public static ShipTeleportLocationArgument fromArgumentAt(String id, org.core.command.argument.CommandArgument<TeleportToVessel> argument, int position)
    • getId

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

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

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