CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.IStringTooltip Interface Reference

A string-based tooltip interface that includes a string suggestion and a formatted tooltip text to display when hovering over the suggestion. More...

+ Inheritance diagram for dev.jorel.commandapi.IStringTooltip:

Public Member Functions

String getSuggestion ()
 Returns the suggestion that this object contains. More...
 
Message getTooltip ()
 Returns the tooltip text that this object contains. More...
 

Detailed Description

A string-based tooltip interface that includes a string suggestion and a formatted tooltip text to display when hovering over the suggestion.

Member Function Documentation

◆ getSuggestion()

String dev.jorel.commandapi.IStringTooltip.getSuggestion ( )

Returns the suggestion that this object contains.

Returns
the suggestion that this object contains

Implemented in dev.jorel.commandapi.StringTooltip.

◆ getTooltip()

Message dev.jorel.commandapi.IStringTooltip.getTooltip ( )

Returns the tooltip text that this object contains.

Returns
the tooltip text that this object contains

Implemented in dev.jorel.commandapi.StringTooltip.