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

An argument that represents raw JSON text. More...

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

Public Member Functions

 ChatComponentArgument (String nodeName)
 Constructs a ChatComponent argument with a given node name. More...
 
Class< BaseComponent[]> getPrimitiveType ()
 
CommandAPIArgumentType getArgumentType ()
 
Argument< T > instance ()
 Returns the instance of this class with the class Impl. More...
 

Detailed Description

An argument that represents raw JSON text.

Since
1.5

@apiNote Returns a BaseComponent[] object

Constructor & Destructor Documentation

◆ ChatComponentArgument()

dev.jorel.commandapi.arguments.ChatComponentArgument.ChatComponentArgument ( String  nodeName)

Constructs a ChatComponent argument with a given node name.

Represents raw JSON text, used in Book MetaData, Chat and other various areas of Minecraft

See also
Raw JSON text
Parameters
nodeNamethe name of the node for argument

Member Function Documentation

◆ 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.