
net.minestom.server.command.builder.ArgumentCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of minestom-snapshots Show documentation
Show all versions of minestom-snapshots Show documentation
1.20.4 Lightweight Minecraft server
package net.minestom.server.command.builder;
import net.minestom.server.command.CommandSender;
import net.minestom.server.command.builder.arguments.Argument;
import net.minestom.server.command.builder.exception.ArgumentSyntaxException;
import org.jetbrains.annotations.NotNull;
/**
* Callback executed when an error is found within the {@link Argument}.
*/
@FunctionalInterface
public interface ArgumentCallback {
/**
* Executed when an error is found.
*
* @param sender the sender which executed the command
* @param exception the exception containing the message, input and error code related to the issue
*/
void apply(@NotNull CommandSender sender, @NotNull ArgumentSyntaxException exception);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy