Class DirectionParser
java.lang.Object
nl.pim16aap2.animatedarchitecture.spigot.core.comands.DirectionParser
- All Implemented Interfaces:
cloud.commandframework.arguments.parser.ArgumentParser<ICommandSender, MovementDirection>, IRestartable
public class DirectionParser
extends Object
implements cloud.commandframework.arguments.parser.ArgumentParser<ICommandSender, MovementDirection>, IRestartable
Represents an argument parser that can be used to retrieve and suggest structure types.
-
Field Summary
Fields inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
DEFAULT_ARGUMENT_COUNT -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the initialization.cloud.commandframework.arguments.parser.ArgumentParseResult<MovementDirection> parse(cloud.commandframework.context.CommandContext<ICommandSender> commandContext, Queue<String> inputQueue) voidshutDown()Handles a shutdown.suggestions(cloud.commandframework.context.CommandContext<ICommandSender> commandContext, String input) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cloud.commandframework.arguments.parser.ArgumentParser
getRequestedArgumentCount, isContextFree, map
-
Method Details
-
parse
public cloud.commandframework.arguments.parser.ArgumentParseResult<MovementDirection> parse(cloud.commandframework.context.CommandContext<ICommandSender> commandContext, Queue<String> inputQueue) - Specified by:
parsein interfacecloud.commandframework.arguments.parser.ArgumentParser<ICommandSender, MovementDirection>
-
suggestions
public List<String> suggestions(cloud.commandframework.context.CommandContext<ICommandSender> commandContext, String input) - Specified by:
suggestionsin interfacecloud.commandframework.arguments.parser.ArgumentParser<ICommandSender, MovementDirection>
-
initialize
public void initialize()Description copied from interface:IRestartableHandles the initialization.- Specified by:
initializein interfaceIRestartable
-
shutDown
public void shutDown()Description copied from interface:IRestartableHandles a shutdown.- Specified by:
shutDownin interfaceIRestartable
-