Start working on the parsing logic

This commit is contained in:
Alexander Söderberg 2020-08-31 16:07:35 +02:00
parent d98f5d9840
commit e6f7d04495
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
5 changed files with 213 additions and 4 deletions

View file

@ -23,5 +23,20 @@
//
package com.intellectualsites.commands.parser;
public interface ComponentParser<T> {
import com.intellectualsites.commands.sender.CommandSender;
import javax.annotation.Nonnull;
import java.util.Queue;
@FunctionalInterface public interface ComponentParser<T> {
/**
* Parse command input into a command result
*
* @param sender Sender who sent the command
* @param inputQueue The queue of arguments
* @return Parsed command result
*/
@Nonnull ComponentParseResult<T> parse(@Nonnull CommandSender sender, @Nonnull Queue<String> inputQueue);
}