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

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

The newest version!
package net.lenni0451.commandlib.utils.interfaces;

import net.lenni0451.commandlib.contexts.ExecutionContext;
import net.lenni0451.commandlib.utils.StringReader;

import java.util.Set;

/**
 * A functional interface to allow supplying custom completions.
 *
 * @param  The type of the executor
 */
@FunctionalInterface
public interface CompletionsProvider {

    /**
     * Provide custom completions.
     *
     * @param completions      The set of completions
     * @param executionContext The execution context
     * @param stringReader     The string reader
     */
    void provide(final Set completions, final ExecutionContext executionContext, final StringReader stringReader);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy