Class LegacyFormat
- java.lang.Object
-
- net.kyori.adventure.text.serializer.legacy.LegacyFormat
-
- All Implemented Interfaces:
net.kyori.examination.Examinable
public final class LegacyFormat extends java.lang.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 TextColor
color()
Gets the color.@Nullable TextDecoration
decoration()
Gets the decoration.boolean
equals(@Nullable java.lang.Object other)
@NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty>
examinableProperties()
int
hashCode()
boolean
reset()
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:
true
if a reset,false
otherwise- Since:
- 4.0.0
-
equals
public boolean equals(@Nullable @Nullable java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
examinableProperties
@NotNull public @NotNull java.util.stream.Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-
-