public class Style
extends java.lang.Object
修飾子とタイプ | クラスと説明 |
---|---|
static class |
Style.Serializer |
コンストラクタと説明 |
---|
Style() |
修飾子とタイプ | メソッドと説明 |
---|---|
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 equivilent text formatting code(s) for this style, including all needed section sign characters.
|
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() |
@Nullable public TextFormatting getColor()
public boolean getBold()
public boolean getItalic()
public boolean getStrikethrough()
public boolean getUnderlined()
public boolean getObfuscated()
public boolean isEmpty()
@Nullable public ClickEvent getClickEvent()
@Nullable public HoverEvent getHoverEvent()
@Nullable 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
クラス内 java.lang.Object
public boolean equals(java.lang.Object p_equals_1_)
equals
クラス内 java.lang.Object
public int hashCode()
hashCode
クラス内 java.lang.Object
public Style createShallowCopy()
public Style createDeepCopy()