public static class ChatBuilder.Component extends Object
| Modifier and Type | Method and Description |
|---|---|
ChatBuilder.Component |
appendText(String text)
Appends a text to the component
|
ChatBuilder |
builder()
Returns the builder of the component
|
ChatBuilder.Component |
getParentComponent()
Returns the parent component.
|
String |
getText()
Returns the text
|
boolean |
isBold()
Returns if the component is bold
|
boolean |
isItalic()
Returns if the component is italic
|
boolean |
isStrikethrough()
Returns if the component isStrikeThrough
|
boolean |
isUnderlined()
Returns if the component isUnderlined
|
ChatBuilder.Component |
setBold(boolean bold)
Sets the component bold
|
ChatBuilder.Component |
setClickAction(ChatBuilder.ClickAction action,
String text)
Sets the click Action of the component
|
ChatBuilder.Component |
setColor(org.bukkit.ChatColor color)
Sets the component color
|
ChatBuilder.Component |
setHoverText(String text)
Sets the hover text of the component and returns the component for the hover-text
|
ChatBuilder.Component |
setItalic(boolean italic)
Sets the component italic
|
ChatBuilder.Component |
setStrikethrough(boolean strikethrough)
Sets the component strikeThrough
|
ChatBuilder.Component |
setText(String text)
Sets the text of the component
|
ChatBuilder.Component |
setUnderlined(boolean underlined)
Sets the component underLined
|
String |
toString()
Returns a string representation of the object.
|
public ChatBuilder.Component getParentComponent()
public ChatBuilder builder()
public ChatBuilder.Component setText(String text)
text - textpublic ChatBuilder.Component setClickAction(ChatBuilder.ClickAction action, String text)
action - actiontext - textpublic ChatBuilder.Component setHoverText(String text)
text - textpublic String getText()
public ChatBuilder.Component appendText(String text)
text - textpublic ChatBuilder.Component setColor(org.bukkit.ChatColor color)
color - colorpublic boolean isBold()
public ChatBuilder.Component setBold(boolean bold)
bold - boldpublic boolean isItalic()
public ChatBuilder.Component setItalic(boolean italic)
italic - italicpublic boolean isUnderlined()
public ChatBuilder.Component setUnderlined(boolean underlined)
underlined - underLinespublic boolean isStrikethrough()
public ChatBuilder.Component setStrikethrough(boolean strikethrough)
strikethrough - strikeThroughpublic String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.Copyright © 2017. All rights reserved.