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 -
Method Summary
Modifier and TypeMethodDescriptiongetId()
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
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceorg.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 interfaceorg.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 interfaceorg.core.command.argument.SuggestCommandArgument<org.core.world.structure.Structure>
-