public static class ChatBuilder.Component
| Modifier and Type | Method and Description |
|---|---|
ChatBuilder.Component |
appendText()
Appends a text to the component
|
ChatBuilder |
builder()
Returns the builder of the component
|
ChatBuilder.Component |
getParentComponent()
Returns the parent component. Returns null if there is no parent
|
java.lang.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()
Sets the component bold
|
ChatBuilder.Component |
setClickAction()
Sets the click Action of the component
|
ChatBuilder.Component |
setColor()
Sets the component color
|
ChatBuilder.Component |
setHoverText()
Sets the hover text of the component and returns the component for the hover-text
|
ChatBuilder.Component |
setItalic()
Sets the component italic
|
ChatBuilder.Component |
setStrikethrough()
Sets the component strikeThrough
|
ChatBuilder.Component |
setText()
Sets the text of the component
|
ChatBuilder.Component |
setUnderlined()
Sets the component underLined
|
java.lang.String |
toString()
Returns a string representation of the object. In general, the
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. |
public ChatBuilder.Component getParentComponent()
Returns the parent component. Returns null if there is no parent
public ChatBuilder builder()
Returns the builder of the component
public ChatBuilder.Component setText()
Sets the text of the component
public ChatBuilder.Component setClickAction()
Sets the click Action of the component
public ChatBuilder.Component setHoverText()
Sets the hover text of the component and returns the component for the hover-text
public java.lang.String getText()
Returns the text
public ChatBuilder.Component appendText()
Appends a text to the component
public ChatBuilder.Component setColor()
Sets the component color
public boolean isBold()
Returns if the component is bold
public ChatBuilder.Component setBold()
Sets the component bold
public boolean isItalic()
Returns if the component is italic
public ChatBuilder.Component setItalic()
Sets the component italic
public boolean isUnderlined()
Returns if the component isUnderlined
public ChatBuilder.Component setUnderlined()
Sets the component underLined
public boolean isStrikethrough()
Returns if the component isStrikeThrough
public ChatBuilder.Component setStrikethrough()
Sets the component strikeThrough
public java.lang.String toString()
Returns a string representation of the object. In general, the 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.