Class Text
- java.lang.Object
-
- net.md_5.bungee.api.chat.hover.content.Content
-
- net.md_5.bungee.api.chat.hover.content.Text
-
public class Text extends Content
-
-
Constructor Summary
Constructors Constructor Description Text(String value)Text(BaseComponent[] value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ObjectgetValue()The value.inthashCode()HoverEvent.ActionrequiredAction()Required action for this content type.StringtoString()-
Methods inherited from class net.md_5.bungee.api.chat.hover.content.Content
assertAction, canEqual
-
-
-
-
Constructor Detail
-
Text
public Text(BaseComponent[] value)
-
Text
public Text(String value)
-
-
Method Detail
-
requiredAction
public HoverEvent.Action requiredAction()
Description copied from class:ContentRequired action for this content type.- Specified by:
requiredActionin classContent- Returns:
- action
-
getValue
public Object getValue()
The value. May be a component or raw text depending on constructor used.
-
-