net.lenni0451.commandlib.utils.interfaces.ArgumentRequirement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CommandLib Show documentation
Show all versions of CommandLib Show documentation
A command lib with a simple and powerful API
The newest version!
package net.lenni0451.commandlib.utils.interfaces;
import net.lenni0451.commandlib.contexts.ExecutionContext;
/**
* A functional interface to allow checking if a command can be executed.
*
* @param The type of the executor
*/
@FunctionalInterface
public interface ArgumentRequirement {
/**
* Test if the command can be executed.
* If this method returns false the command will not be executed.
*
* @param executionContext The execution context
* @return If the command can be executed
*/
boolean test(final ExecutionContext executionContext);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy