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>
-
Constructor Summary
ConstructorsConstructorDescriptionShipTeleportLocationArgument
(String id, org.core.command.argument.ParseCommandArgument<? extends TeleportToVessel> toVessel) -
Method Summary
Modifier and TypeMethodDescriptionstatic ShipTeleportLocationArgument
fromArgumentAt
(String id, org.core.command.argument.CommandArgument<TeleportToVessel> argument, int position) getId()
org.core.command.argument.CommandArgumentResult<String>
parse
(org.core.command.argument.context.CommandContext context, org.core.command.argument.context.CommandArgumentContext<String> argument) suggest
(org.core.command.argument.context.CommandContext commandContext, org.core.command.argument.context.CommandArgumentContext<String> 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
-
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
- Specified by:
getId
in interfaceorg.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 interfaceorg.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 interfaceorg.core.command.argument.SuggestCommandArgument<String>
-