| Constructor and Description |
|---|
Style() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyParent()
Apply the parent style to this style.
|
Style |
copy() |
boolean |
equals(java.lang.Object o) |
java.lang.Boolean |
getBold() |
ClickEvent |
getClickEvent() |
net.lenni0451.mcstructs.core.TextFormatting |
getColor() |
net.lenni0451.mcstructs.core.Identifier |
getFont() |
AHoverEvent |
getHoverEvent() |
java.lang.String |
getInsertion() |
java.lang.Boolean |
getItalic() |
java.lang.Boolean |
getObfuscated() |
Style |
getParent() |
java.lang.Integer |
getShadowColor() |
java.lang.Boolean |
getStrikethrough() |
java.lang.Boolean |
getUnderlined() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isEmpty() |
boolean |
isItalic() |
boolean |
isObfuscated() |
boolean |
isStrikethrough() |
boolean |
isUnderlined() |
Style |
setBold(java.lang.Boolean bold)
Set this style to be bold.
|
Style |
setClickEvent(ClickEvent clickEvent)
Set the click event of this style.
|
Style |
setColor(int rgb)
Set the rgb color of this style.
|
Style |
setFont(net.lenni0451.mcstructs.core.Identifier font)
Set the font of this style.
|
Style |
setFormatting(net.lenni0451.mcstructs.core.TextFormatting... formattings)
Set multiple formattings to this style.
|
Style |
setFormatting(net.lenni0451.mcstructs.core.TextFormatting formatting)
Set a formatting to this style.
|
Style |
setHoverEvent(AHoverEvent hoverEvent)
Set the hover event of this style.
|
Style |
setInsertion(java.lang.String insertion)
Set the insertion of this style.
|
Style |
setItalic(java.lang.Boolean italic)
Set this style to be italic.
|
Style |
setObfuscated(java.lang.Boolean obfuscated)
Set this style to be obfuscated.
|
Style |
setParent(Style style)
Set the parent style.
|
void |
setShadowColor(java.lang.Integer shadowColor)
Set the shadow color of this style.
|
Style |
setStrikethrough(java.lang.Boolean strikethrough)
Set this style to be strikethrough.
|
Style |
setUnderlined(java.lang.Boolean underlined)
Set this style to be underlined.
|
java.lang.String |
toString() |
public Style setParent(Style style)
style - The parent stylepublic Style getParent()
public Style setFormatting(net.lenni0451.mcstructs.core.TextFormatting formatting)
formatting - The formattingpublic Style setFormatting(net.lenni0451.mcstructs.core.TextFormatting... formattings)
formattings - The formattingspublic Style setColor(int rgb)
rgb - The rgb colorpublic net.lenni0451.mcstructs.core.TextFormatting getColor()
public void setShadowColor(java.lang.Integer shadowColor)
shadowColor - The shadow colorpublic java.lang.Integer getShadowColor()
public Style setBold(java.lang.Boolean bold)
bold - The bold state (use null to reset)public java.lang.Boolean getBold()
public boolean isBold()
public Style setItalic(java.lang.Boolean italic)
italic - The italic state (use null to reset)public java.lang.Boolean getItalic()
public boolean isItalic()
public Style setUnderlined(java.lang.Boolean underlined)
underlined - The underlined state (use null to reset)public java.lang.Boolean getUnderlined()
public boolean isUnderlined()
public Style setStrikethrough(java.lang.Boolean strikethrough)
strikethrough - The strikethrough state (use null to reset)public java.lang.Boolean getStrikethrough()
public boolean isStrikethrough()
public Style setObfuscated(java.lang.Boolean obfuscated)
obfuscated - The obfuscated state (use null to reset)public java.lang.Boolean getObfuscated()
public boolean isObfuscated()
public Style setClickEvent(ClickEvent clickEvent)
clickEvent - The click eventpublic ClickEvent getClickEvent()
public Style setHoverEvent(AHoverEvent hoverEvent)
hoverEvent - The hover eventpublic AHoverEvent getHoverEvent()
public Style setInsertion(java.lang.String insertion)
insertion - The insertionpublic java.lang.String getInsertion()
public Style setFont(net.lenni0451.mcstructs.core.Identifier font)
font - The fontpublic net.lenni0451.mcstructs.core.Identifier getFont()
public boolean isEmpty()
public void applyParent()
public Style copy()
copy in interface net.lenni0451.mcstructs.core.ICopyable<Style>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object