public class Style
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Style.Serializer |
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
Style |
createDeepCopy()
Creates a deep copy of this style.
|
Style |
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 |
getClickEvent()
The effective chat click event.
|
TextFormatting |
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.
|
HoverEvent |
getHoverEvent()
The effective chat hover event.
|
java.lang.String |
getInsertion()
Get the text to be inserted into Chat when the component is shift-clicked
|
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).
|
Style |
setBold(java.lang.Boolean boldIn)
Sets whether or not text of this ChatStyle should be in bold.
|
Style |
setClickEvent(ClickEvent event)
Sets the event that should be run when text of this ChatStyle is clicked on.
|
Style |
setColor(TextFormatting color)
Sets the color for this ChatStyle to the given value.
|
Style |
setHoverEvent(HoverEvent event)
Sets the event that should be run when text of this ChatStyle is hovered over.
|
Style |
setInsertion(java.lang.String insertion)
Set a text to be inserted into Chat when the component is shift-clicked
|
Style |
setItalic(java.lang.Boolean italic)
Sets whether or not text of this ChatStyle should be italicized.
|
Style |
setObfuscated(java.lang.Boolean obfuscated)
Sets whether or not text of this ChatStyle should be obfuscated.
|
Style |
setParentStyle(Style parent)
Sets the fallback ChatStyle to use if this ChatStyle does not override some value.
|
Style |
setStrikethrough(java.lang.Boolean strikethrough)
Sets whether or not to format text of this ChatStyle using strikethrough.
|
Style |
setUnderlined(java.lang.Boolean underlined)
Sets whether or not text of this ChatStyle should be underlined.
|
java.lang.String |
toString() |
public TextFormatting getColor()
public boolean getBold()
public boolean getItalic()
public boolean getStrikethrough()
public boolean getUnderlined()
public boolean getObfuscated()
public boolean isEmpty()
public ClickEvent getClickEvent()
public HoverEvent getHoverEvent()
public java.lang.String getInsertion()
public Style setColor(TextFormatting color)
public Style setBold(java.lang.Boolean boldIn)
public Style setItalic(java.lang.Boolean italic)
public Style setStrikethrough(java.lang.Boolean strikethrough)
public Style setUnderlined(java.lang.Boolean underlined)
public Style setObfuscated(java.lang.Boolean obfuscated)
public Style setClickEvent(ClickEvent event)
public Style setHoverEvent(HoverEvent event)
public Style setInsertion(java.lang.String insertion)
public Style setParentStyle(Style parent)
public java.lang.String getFormattingCode()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Style createShallowCopy()
public Style createDeepCopy()