All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.jorel.commandapi.executors.FeedbackForwardingResultingExecutionInfo Maven / Gradle / Ivy

There is a newer version: 9.5.3
Show newest version
package dev.jorel.commandapi.executors;

import org.bukkit.command.CommandSender;

import dev.jorel.commandapi.commandsenders.BukkitFeedbackForwardingCommandSender;
import dev.jorel.commandapi.exceptions.WrapperCommandSyntaxException;

@FunctionalInterface
public interface FeedbackForwardingResultingExecutionInfo extends ResultingExecutor> {

	/**
	 * The code to run when this command is performed
	 *
	 * @param info The ExecutionInfo for this command
	 * @return the result of this command
	 */
	int 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.FEEDBACK_FORWARDING;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy