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

net.lenni0451.commandlib.utils.interfaces.ArgumentRequirement Maven / Gradle / Ivy

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