dev.jorel.commandapi.executors.CommandBlockExecutionInfo Maven / Gradle / Ivy
package dev.jorel.commandapi.executors;
import dev.jorel.commandapi.commandsenders.BukkitBlockCommandSender;
import dev.jorel.commandapi.exceptions.WrapperCommandSyntaxException;
import org.bukkit.command.BlockCommandSender;
@FunctionalInterface
public interface CommandBlockExecutionInfo extends NormalExecutor {
/**
* Executes the command.
*
* @param info The ExecutionInfo for this command
* @throws WrapperCommandSyntaxException if an error occurs during the execution of this command
*/
void run(ExecutionInfo info) throws WrapperCommandSyntaxException;
/**
* Returns the type of the sender of the current executor.
*
* @return the type of the sender of the current executor
*/
@Override
default ExecutorType getType() {
return ExecutorType.BLOCK;
}
}