Class LegacyFormat
- java.lang.Object
-
- net.kyori.adventure.text.serializer.legacy.LegacyFormat
-
- All Implemented Interfaces:
net.kyori.examination.Examinable
public final class LegacyFormat extends Object implements net.kyori.examination.Examinable
A legacy format.- Since:
- 4.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable TextColorcolor()Gets the color.@Nullable TextDecorationdecoration()Gets the decoration.booleanequals(@Nullable Object other)@NotNull Stream<? extends net.kyori.examination.ExaminableProperty>examinableProperties()inthashCode()booleanreset()Gets if this format is a reset.
-
-
-
Method Detail
-
color
@Nullable public @Nullable TextColor color()
Gets the color.- Returns:
- the color
- Since:
- 4.0.0
-
decoration
@Nullable public @Nullable TextDecoration decoration()
Gets the decoration.- Returns:
- the decoration
- Since:
- 4.0.0
-
reset
public boolean reset()
Gets if this format is a reset.- Returns:
trueif a reset,falseotherwise- Since:
- 4.0.0
-
examinableProperties
@NotNull public @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
examinablePropertiesin interfacenet.kyori.examination.Examinable
-
-