public class Style extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Style.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private Boolean |
bold |
private ClickEvent |
clickEvent |
private class_5251 |
color |
static Identifier |
field_24359 |
static Style |
field_24360 |
private Identifier |
field_24361 |
private HoverEvent |
hoverEvent |
private String |
insertion |
private Boolean |
italic |
private Boolean |
obfuscated |
private Boolean |
strikethrough |
private Boolean |
underline |
| Modifier | Constructor and Description |
|---|---|
private |
Style(class_5251 class_5251,
Boolean bool,
Boolean bool2,
Boolean bool3,
Boolean bool4,
Boolean bool5,
ClickEvent clickEvent,
HoverEvent hoverEvent,
String string,
Identifier identifier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ClickEvent |
getClickEvent() |
class_5251 |
getColor() |
HoverEvent |
getHoverEvent() |
String |
getInsertion() |
int |
hashCode() |
boolean |
isBold() |
boolean |
isEmpty() |
boolean |
isItalic() |
boolean |
isObfuscated() |
boolean |
isStrikethrough() |
boolean |
isUnderlined() |
Style |
method_27702(Style style) |
Style |
method_27703(class_5251 class_5251) |
Style |
method_27704(Identifier identifier) |
Style |
method_27705(Formatting[] formatting) |
Style |
method_27706(Formatting formatting) |
Style |
method_27707(Formatting formatting) |
Identifier |
method_27708() |
Style |
setBold(Boolean bold) |
Style |
setClickEvent(ClickEvent clickEvent) |
Style |
setColor(Formatting color) |
Style |
setHoverEvent(HoverEvent hoverEvent) |
Style |
setInsertion(String string) |
Style |
setItalic(Boolean bool) |
String |
toString() |
public static final Identifier field_24359
public static final Style field_24360
@Nullable private final class_5251 color
@Nullable private final ClickEvent clickEvent
@Nullable private final HoverEvent hoverEvent
@Nullable private final Identifier field_24361
private Style(@Nullable class_5251 class_5251, @Nullable Boolean bool, @Nullable Boolean bool2, @Nullable Boolean bool3, @Nullable Boolean bool4, @Nullable Boolean bool5, @Nullable ClickEvent clickEvent, @Nullable HoverEvent hoverEvent, @Nullable String string, @Nullable Identifier identifier)
@Nullable public class_5251 getColor()
public boolean isBold()
public boolean isItalic()
public boolean isStrikethrough()
public boolean isUnderlined()
public boolean isObfuscated()
public boolean isEmpty()
@Nullable public ClickEvent getClickEvent()
@Nullable public HoverEvent getHoverEvent()
public Identifier method_27708()
public Style method_27703(@Nullable class_5251 class_5251)
public Style setColor(@Nullable Formatting color)
public Style setClickEvent(@Nullable ClickEvent clickEvent)
public Style setHoverEvent(@Nullable HoverEvent hoverEvent)
@Environment(value=CLIENT) public Style method_27704(@Nullable Identifier identifier)
public Style method_27706(Formatting formatting)
@Environment(value=CLIENT) public Style method_27707(Formatting formatting)
public Style method_27705(Formatting[] formatting)