Interface ArgumentCallback
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface ArgumentCallback
Callback executed when an error is found within the
Argument
.-
Method Summary
Modifier and Type Method Description void
apply(CommandSender source, java.lang.String value, int error)
Executed when an error is found.
-
Method Details
-
apply
Executed when an error is found.- Parameters:
source
- the sender which executed the commandvalue
- the raw string argument which is responsible for the errorerror
- the error id (you can check its meaning in the specific argument class or ask the developer about it)
-