Package net.kyori.adventure.text.format
Enum TextDecoration
- All Implemented Interfaces:
- Serializable,- Comparable<TextDecoration>,- ComponentBuilderApplicable,- StyleBuilderApplicable,- TextFormat
public enum TextDecoration extends Enum<TextDecoration> implements StyleBuilderApplicable, TextFormat
An enumeration of decorations which may be applied to a 
Component.- Since:
- 4.0.0
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTextDecoration.StateA state that aTextDecorationcan be in.
- 
Enum Constant SummaryEnum Constants Enum Constant Description BOLDA decoration which makes text appear bold.ITALICA decoration which makes text appear in italics.OBFUSCATEDA decoration which makes text obfuscated/unreadable.STRIKETHROUGHA decoration which makes text have a strike through it.UNDERLINEDA decoration which makes text have an underline.
- 
Field SummaryFields Modifier and Type Field Description static Index<String,TextDecoration>NAMESThe name map.
- 
Method SummaryModifier and Type Method Description voidstyleApply(@NonNull Style.Builder style)Applies tostyle.@NonNull StringtoString()static TextDecorationvalueOf(String name)Returns the enum constant of this type with the specified name.static TextDecoration[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enumclone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOfMethods inherited from interface net.kyori.adventure.text.format.StyleBuilderApplicablecomponentBuilderApply
- 
Enum Constant Details- 
OBFUSCATEDA decoration which makes text obfuscated/unreadable.- Since:
- 4.0.0
 
- 
BOLDA decoration which makes text appear bold.- Since:
- 4.0.0
 
- 
STRIKETHROUGHA decoration which makes text have a strike through it.- Since:
- 4.0.0
 
- 
UNDERLINEDA decoration which makes text have an underline.- Since:
- 4.0.0
 
- 
ITALICA decoration which makes text appear in italics.- Since:
- 4.0.0
 
 
- 
- 
Field Details- 
NAMESThe name map.- Since:
- 4.0.0
 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
styleApplyDescription copied from interface:StyleBuilderApplicableApplies tostyle.- Specified by:
- styleApplyin interface- StyleBuilderApplicable
- Parameters:
- style- the style builder
 
- 
toString- Overrides:
- toStringin class- Enum<TextDecoration>
 
 
-