Start working on the parsing logic
This commit is contained in:
parent
d98f5d9840
commit
e6f7d04495
5 changed files with 213 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue