Package net.minecraft.util.text
Enum Class TextFormatting
- All Implemented Interfaces:
- Serializable,- Comparable<TextFormatting>,- Constable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescription
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateTextFormatting(String p_i46292_3_, char p_i46292_4_, boolean p_i46292_5_) privateTextFormatting(String p_i49746_3_, char p_i49746_4_, boolean p_i49746_5_, int p_i49746_6_, Integer p_i49746_7_) privateTextFormatting(String p_i49745_3_, char p_i49745_4_, int p_i49745_5_, Integer p_i49745_6_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static Stringstatic TextFormattinggetByCode(char p_211165_0_) static TextFormattinggetById(int p_175744_0_) static TextFormattinggetColor()intgetId()getName()static Collection<String>getNames(boolean p_96296_0_, boolean p_96296_1_) booleanisColor()booleanisFormat()static StringstripFormatting(String p_110646_0_) toString()static TextFormattingReturns the enum constant of this class with the specified name.static TextFormatting[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
BLACK
- 
DARK_BLUE
- 
DARK_GREEN
- 
DARK_AQUA
- 
DARK_RED
- 
DARK_PURPLE
- 
GOLD
- 
GRAY
- 
DARK_GRAY
- 
BLUE
- 
GREEN
- 
AQUA
- 
RED
- 
LIGHT_PURPLE
- 
YELLOW
- 
WHITE
- 
OBFUSCATED
- 
BOLD
- 
STRIKETHROUGH
- 
UNDERLINE
- 
ITALIC
- 
RESET
 
- 
- 
Field Details- 
FORMATTING_BY_NAME
- 
STRIP_FORMATTING_PATTERN
- 
name
- 
codeprivate final char code
- 
isFormatprivate final boolean isFormat
- 
toString
- 
idprivate final int id
- 
color
 
- 
- 
Constructor Details- 
TextFormatting
- 
TextFormatting
- 
TextFormatting
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
cleanName
- 
getIdpublic int getId()
- 
isFormatpublic boolean isFormat()
- 
isColorpublic boolean isColor()
- 
getColor
- 
getName
- 
toString- Overrides:
- toStringin class- Enum<TextFormatting>
 
- 
stripFormatting
- 
getByName
- 
getById
- 
getByCode
- 
getNames
 
-