Package net.minecraft
Enum Class ChatFormatting
- All Implemented Interfaces:
- Serializable,- Comparable<ChatFormatting>,- 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 SummaryConstructorsModifierConstructorDescriptionprivateChatFormatting(String p_126634_, char p_126635_, boolean p_126636_)privateChatFormatting(String p_126640_, char p_126641_, boolean p_126642_, int p_126643_, Integer p_126644_)privateChatFormatting(String p_126627_, char p_126628_, int p_126629_, Integer p_126630_)
- 
Method SummaryModifier and TypeMethodDescriptionprivate static Stringstatic ChatFormattinggetByCode(char p_126646_)static ChatFormattinggetById(int p_126648_)static ChatFormattingchargetChar()getColor()intgetId()getName()static Collection<String>getNames(boolean p_126654_, boolean p_126655_)booleanisColor()booleanisFormat()static StringstripFormatting(String p_126650_)toString()static ChatFormattingReturns the enum constant of this class with the specified name.static ChatFormatting[]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- 
PREFIX_CODEpublic static final char PREFIX_CODE- See Also:
- Constant Field Values
 
- 
FORMATTING_BY_NAME
- 
STRIP_FORMATTING_PATTERN
- 
name
- 
codeprivate final char code
- 
isFormatprivate final boolean isFormat
- 
toString
- 
idprivate final int id
- 
color
 
- 
- 
Constructor Details- 
ChatFormatting
- 
ChatFormatting
- 
ChatFormatting
 
- 
- 
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
- 
getCharpublic char getChar()
- 
getIdpublic int getId()
- 
isFormatpublic boolean isFormat()
- 
isColorpublic boolean isColor()
- 
getColor
- 
getName
- 
toString- Overrides:
- toStringin class- Enum<ChatFormatting>
 
- 
stripFormatting
- 
getByName
- 
getById
- 
getByCode
- 
getNames
 
-