CommandAPI 9.4.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.CustomArgument< T, B >.CustomArgumentInfoParser< T, B > Interface Template Reference

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

Public Member Functions

apply (CustomArgumentInfo< B > info) throws CustomArgumentException
 Applies a CustomArgumentInfo input to this custom argument parser. More...
 

Detailed Description

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

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

Member Function Documentation

◆ apply()

T dev.jorel.commandapi.arguments.CustomArgument< T, B >.CustomArgumentInfoParser< T, B >.apply ( CustomArgumentInfo< B >  info) throws CustomArgumentException

Applies a CustomArgumentInfo input to this custom argument parser.

Parameters
infothe custom argument info to apply to this parser
Returns
the applied output represented by this FunctionalInterface
Exceptions
CustomArgumentExceptionif an error occurs during parsing