Package dev.jorel.commandapi.arguments
Interface CustomArgument.CustomArgumentInfoParser<T,B>
- Type Parameters:
T- the type that is returned when applying this parser
- Enclosing class:
CustomArgument<T,B>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A FunctionalInterface that takes in a
CustomArgument.CustomArgumentInfo, returns T
and can throw a CustomArgument.CustomArgumentException-
Method Summary
Modifier and TypeMethodDescriptionApplies a CustomArgumentInfo input to this custom argument parser
-
Method Details
-
apply
Applies a CustomArgumentInfo input to this custom argument parser- Parameters:
info- the custom argument info to apply to this parser- Returns:
- the applied output represented by this FunctionalInterface
- Throws:
CustomArgument.CustomArgumentException- if an error occurs during parsing
-