CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.MultiLiteralArgument Class Reference

An argument that represents multiple LiteralArguments. More...

+ Inheritance diagram for dev.jorel.commandapi.arguments.MultiLiteralArgument:

Public Member Functions

 MultiLiteralArgument (String nodeName, String... literals)
 A multiliteral argument. More...
 
 MultiLiteralArgument (final String[] literals)
 A multiliteral argument. More...
 
 MultiLiteralArgument (String nodeName, final List< String > literals)
 A multiliteral argument. More...
 
Class< String > getPrimitiveType ()
 
String[] getLiterals ()
 Returns the literals that are present in this argument. More...
 
CommandAPIArgumentType getArgumentType ()
 
Argument< T > instance ()
 Returns the instance of this class with the class Impl. More...
 

Detailed Description

An argument that represents multiple LiteralArguments.

Since
4.1

Constructor & Destructor Documentation

◆ MultiLiteralArgument() [1/3]

dev.jorel.commandapi.arguments.MultiLiteralArgument.MultiLiteralArgument ( String  nodeName,
String...  literals 
)

A multiliteral argument.

Takes in string literals which cannot be modified

Parameters
nodeNamethe node name for this argument
literalsthe literals that this argument represents

◆ MultiLiteralArgument() [2/3]

dev.jorel.commandapi.arguments.MultiLiteralArgument.MultiLiteralArgument ( final String[]  literals)

A multiliteral argument.

Takes in string literals which cannot be modified

Parameters
literalsthe literals that this argument represents
Deprecated:
Use MultiLiteralArgument#MultiLiteralArgument(String, String...) instead

◆ MultiLiteralArgument() [3/3]

dev.jorel.commandapi.arguments.MultiLiteralArgument.MultiLiteralArgument ( String  nodeName,
final List< String >  literals 
)

A multiliteral argument.

Takes in string literals which cannot be modified

Parameters
nodeNamethe node name for this argument
literalsthe literals that this argument represents
Deprecated:
Use MultiLiteralArgument#MultiLiteralArgument(String, String...) instead

Member Function Documentation

◆ getLiterals()

String[] dev.jorel.commandapi.arguments.MultiLiteralArgument.getLiterals ( )

Returns the literals that are present in this argument.

Returns
the literals that are present in this argument

◆ instance()

Argument< T > dev.jorel.commandapi.arguments.Argument< T >.instance ( )
inherited

Returns the instance of this class with the class Impl.

Used for chaining builder methods.