CommandAPI  6.2.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.CustomArgument< T >.CustomArgumentParser< T > Interface Template Reference

A FunctionalInterface that takes in a String, returns T and can throw a CustomArgumentException. More...

Public Member Functions

apply (String input) throws CustomArgumentException
 Applies a String input to this custom argument parser. More...
 

Detailed Description

A FunctionalInterface that takes in a String, returns T and can throw a CustomArgumentException.

Parameters
<T>the type that is returned when applying this parser

Member Function Documentation

◆ apply()

Applies a String input to this custom argument parser.

Parameters
inputthe String input to apply
Returns
the applied output represented by this FunctionalInterface
Exceptions
CustomArgumentExceptionif an error occurs during parsing