If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.text . ChatFormatting;
ChatFormatting
implements the following interfaces:
StringRepresentable
Undocumented Interfaces Comparable <Enum >
ChatFormatting is an enum with 22 constants. They are accessible like so:
< constant : minecraft:formatting:aqua >
< constant : minecraft:formatting:black >
< constant : minecraft:formatting:blue >
< constant : minecraft:formatting:bold >
// ChatFormatting.DARK_AQUA
< constant : minecraft:formatting:dark_aqua >
// ChatFormatting.DARK_BLUE
< constant : minecraft:formatting:dark_blue >
// ChatFormatting.DARK_GRAY
< constant : minecraft:formatting:dark_gray >
// ChatFormatting.DARK_GREEN
< constant : minecraft:formatting:dark_green >
// ChatFormatting.DARK_PURPLE
< constant : minecraft:formatting:dark_purple >
// ChatFormatting.DARK_RED
< constant : minecraft:formatting:dark_red >
< constant : minecraft:formatting:gold >
< constant : minecraft:formatting:gray >
< constant : minecraft:formatting:green >
< constant : minecraft:formatting:italic >
// ChatFormatting.LIGHT_PURPLE
< constant : minecraft:formatting:light_purple >
// ChatFormatting.OBFUSCATED
< constant : minecraft:formatting:obfuscated >
< constant : minecraft:formatting:red >
< constant : minecraft:formatting:reset >
// ChatFormatting.STRIKETHROUGH
< constant : minecraft:formatting:strikethrough >
// ChatFormatting.UNDERLINE
< constant : minecraft:formatting:underline >
< constant : minecraft:formatting:white >
< constant : minecraft:formatting:yellow >
// ChatFormatting.asStyle() as Style;
< constant : minecraft:formatting:aqua > .asStyle();
Return Type:
Style
// ChatFormatting as Style
< constant : minecraft:formatting:aqua > as Style
Return Type:
Style
// ChatFormatting.color() as Integer;
< constant : minecraft:formatting:aqua > .color();
Return Type:
Integer
// ChatFormatting.getChar() as char;
< constant : minecraft:formatting:aqua > .getChar();
Return Type:
char
// ChatFormatting.getName() as string;
< constant : minecraft:formatting:aqua > .getName();
Return Type:
string
// ChatFormatting.id as int
< constant : minecraft:formatting:aqua > .id
Return Type:
int
// ChatFormatting.id() as int;
< constant : minecraft:formatting:aqua > .id();
Return Type:
int
// ChatFormatting.isColor as bool
< constant : minecraft:formatting:aqua > .isColor
Return Type:
bool
// ChatFormatting.isColor() as bool;
< constant : minecraft:formatting:aqua > .isColor();
Return Type:
bool
// ChatFormatting.isFormat as bool
< constant : minecraft:formatting:aqua > .isFormat
Return Type:
bool
// ChatFormatting.isFormat() as bool;
< constant : minecraft:formatting:aqua > .isFormat();
Return Type:
bool
Gets the serialized name. // ChatFormatting.serializedName as string
< constant : minecraft:formatting:aqua > .serializedName
Return Type:
string
Gets the serialized name. Returns : the serialized name.
// ChatFormatting.serializedName() as string;
< constant : minecraft:formatting:aqua > .serializedName();
Return Type:
string
// ChatFormatting.toString() as string;
< constant : minecraft:formatting:aqua > .toString();
Return Type:
string
// ChatFormatting as string
< constant : minecraft:formatting:aqua > as string
Return Type:
string