CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.LiteralMessage Class Reference

A Message that has a literal string it returns. More...

+ Inheritance diagram for com.mojang.brigadier.LiteralMessage:

Public Member Functions

 LiteralMessage (final String string)
 Creates a new LiteralMessage returning the given string. More...
 
String getString ()
 Returns the content of the message. More...
 
String toString ()
 

Detailed Description

A Message that has a literal string it returns.

Constructor & Destructor Documentation

◆ LiteralMessage()

com.mojang.brigadier.LiteralMessage.LiteralMessage ( final String  string)

Creates a new LiteralMessage returning the given string.

Parameters
stringthe string to return

Member Function Documentation

◆ getString()

String com.mojang.brigadier.LiteralMessage.getString ( )

Returns the content of the message.

Returns
the content of the message

Implements com.mojang.brigadier.Message.