public class Style
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Style.Serializer |
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
bold |
private ClickEvent |
clickEvent |
private TextFormatting |
color |
private HoverEvent |
hoverEvent |
private java.lang.String |
insertion |
private java.lang.Boolean |
italic |
private java.lang.Boolean |
obfuscated |
private Style |
parentStyle |
private static Style |
ROOT |
private java.lang.Boolean |
strikethrough |
private java.lang.Boolean |
underlined |
Constructor and Description |
---|
Style() |
Modifier and Type | Method and Description |
---|---|
Style |
createDeepCopy() |
Style |
createShallowCopy() |
boolean |
equals(java.lang.Object p_equals_1_) |
boolean |
getBold() |
ClickEvent |
getClickEvent() |
TextFormatting |
getColor() |
java.lang.String |
getFormattingCode() |
HoverEvent |
getHoverEvent() |
java.lang.String |
getInsertion() |
boolean |
getItalic() |
boolean |
getObfuscated() |
private Style |
getParent() |
boolean |
getStrikethrough() |
boolean |
getUnderlined() |
int |
hashCode() |
boolean |
isEmpty() |
Style |
setBold(java.lang.Boolean boldIn) |
Style |
setClickEvent(ClickEvent event) |
Style |
setColor(TextFormatting color) |
Style |
setHoverEvent(HoverEvent event) |
Style |
setInsertion(java.lang.String insertion) |
Style |
setItalic(java.lang.Boolean italic) |
Style |
setObfuscated(java.lang.Boolean obfuscated) |
Style |
setParentStyle(Style parent) |
Style |
setStrikethrough(java.lang.Boolean strikethrough) |
Style |
setUnderlined(java.lang.Boolean underlined) |
java.lang.String |
toString() |
private Style parentStyle
private TextFormatting color
private java.lang.Boolean bold
private java.lang.Boolean italic
private java.lang.Boolean underlined
private java.lang.Boolean strikethrough
private java.lang.Boolean obfuscated
private ClickEvent clickEvent
private HoverEvent hoverEvent
private java.lang.String insertion
private static final Style ROOT
@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 java.lang.String getFormattingCode()
private Style getParent()
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()