public class ChatStyle
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ChatStyle.Serializer |
| Constructor and Description |
|---|
ChatStyle() |
| Modifier and Type | Method and Description |
|---|---|
ChatStyle |
createDeepCopy()
Creates a deep copy of this style.
|
ChatStyle |
createShallowCopy()
Creates a shallow copy of this style.
|
boolean |
equals(java.lang.Object p_equals_1_) |
boolean |
getBold()
Whether or not text of this ChatStyle should be in bold.
|
ClickEvent |
getChatClickEvent()
The effective chat click event.
|
HoverEvent |
getChatHoverEvent()
The effective chat hover event.
|
EnumChatFormatting |
getColor()
Gets the effective color of this ChatStyle.
|
java.lang.String |
getFormattingCode()
Gets the equivalent text formatting code for this style, without the initial section sign (U+00A7) character.
|
boolean |
getItalic()
Whether or not text of this ChatStyle should be italicized.
|
boolean |
getObfuscated()
Whether or not text of this ChatStyle should be obfuscated.
|
boolean |
getStrikethrough()
Whether or not to format text of this ChatStyle using strikethrough.
|
boolean |
getUnderlined()
Whether or not text of this ChatStyle should be underlined.
|
int |
hashCode() |
boolean |
isEmpty()
Whether or not this style is empty (inherits everything from the parent).
|
ChatStyle |
setBold(java.lang.Boolean p_150227_1_)
Sets whether or not text of this ChatStyle should be in bold.
|
ChatStyle |
setChatClickEvent(ClickEvent p_150241_1_)
Sets the event that should be run when text of this ChatStyle is clicked on.
|
ChatStyle |
setChatHoverEvent(HoverEvent p_150209_1_)
Sets the event that should be run when text of this ChatStyle is hovered over.
|
ChatStyle |
setColor(EnumChatFormatting p_150238_1_)
Sets the color for this ChatStyle to the given value.
|
ChatStyle |
setItalic(java.lang.Boolean p_150217_1_)
Sets whether or not text of this ChatStyle should be italicized.
|
ChatStyle |
setObfuscated(java.lang.Boolean p_150237_1_)
Sets whether or not text of this ChatStyle should be obfuscated.
|
ChatStyle |
setParentStyle(ChatStyle p_150221_1_)
Sets the fallback ChatStyle to use if this ChatStyle does not override some value.
|
ChatStyle |
setStrikethrough(java.lang.Boolean p_150225_1_)
Sets whether or not to format text of this ChatStyle using strikethrough.
|
ChatStyle |
setUnderlined(java.lang.Boolean p_150228_1_)
Sets whether or not text of this ChatStyle should be underlined.
|
java.lang.String |
toString() |
public EnumChatFormatting getColor()
public boolean getBold()
public boolean getItalic()
public boolean getStrikethrough()
public boolean getUnderlined()
public boolean getObfuscated()
public boolean isEmpty()
public ClickEvent getChatClickEvent()
public HoverEvent getChatHoverEvent()
public ChatStyle setColor(EnumChatFormatting p_150238_1_)
public ChatStyle setBold(java.lang.Boolean p_150227_1_)
public ChatStyle setItalic(java.lang.Boolean p_150217_1_)
public ChatStyle setStrikethrough(java.lang.Boolean p_150225_1_)
public ChatStyle setUnderlined(java.lang.Boolean p_150228_1_)
public ChatStyle setObfuscated(java.lang.Boolean p_150237_1_)
public ChatStyle setChatClickEvent(ClickEvent p_150241_1_)
public ChatStyle setChatHoverEvent(HoverEvent p_150209_1_)
public ChatStyle setParentStyle(ChatStyle p_150221_1_)
public java.lang.String getFormattingCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object p_equals_1_)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic ChatStyle createShallowCopy()
public ChatStyle createDeepCopy()