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

A class that represents a function that parses a String into another object. More...

Public Member Functions

parse (String s) throws WrapperCommandSyntaxException
 A method that turns a String into an object of type T. More...
 

Detailed Description

A class that represents a function that parses a String into another object.

See StringParser#parse(String)

Parameters
<T>The class that this StringParser turns strings into.

Member Function Documentation

◆ parse()

A method that turns a String into an object of type T.

Parameters
sThe String to parse
Returns
The resulting parsed object
Exceptions
WrapperCommandSyntaxExceptionIf there is a problem with the syntax of the String that prevents it from being turned into an object of type T.