Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ColorFormat.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace mce { class Color; }
8// clang-format on
9
10namespace ColorFormat {
11// functions
12// NOLINTBEGIN
13#ifdef LL_PLAT_C
14MCNAPI ::std::string ColorCodeFromColor(::mce::Color const& color);
15
16MCNAPI ::mce::Color const* ColorFromColorCode(::std::string const& colorCode);
17#endif
18
19MCNAPI ::std::string_view const FormatCodeFromName(::std::string const& str);
20
21#ifdef LL_PLAT_C
22MCNAPI ::std::string NameFromFormatCode(::std::string const& formatCode);
23#endif
24// NOLINTEND
25
26// static variables
27// NOLINTBEGIN
28constexpr inline std::string_view AQUA = "§b";
29
30constexpr inline std::string_view BLACK = "§0";
31
32constexpr inline std::string_view BLUE = "§9";
33
34constexpr inline std::string_view BOLD = "§l";
35
36constexpr inline std::string_view DARK_AQUA = "§3";
37
38constexpr inline std::string_view DARK_BLUE = "§1";
39
40constexpr inline std::string_view DARK_GRAY = "§8";
41
42constexpr inline std::string_view DARK_GREEN = "§2";
43
44constexpr inline std::string_view DARK_PURPLE = "§5";
45
46constexpr inline std::string_view DARK_RED = "§4";
47
48constexpr inline std::string_view ESCAPE = "§";
49
50constexpr inline std::string_view GOLD = "§6";
51
52constexpr inline std::string_view GRAY = "§7";
53
54constexpr inline std::string_view GREEN = "§a";
55
56constexpr inline std::string_view ITALIC = "§o";
57
58constexpr inline std::string_view LIGHT_PURPLE = "§d";
59
60constexpr inline std::string_view MATERIAL_AMETHYST = "§u";
61
62constexpr inline std::string_view MATERIAL_COPPER = "§n";
63
64constexpr inline std::string_view MATERIAL_DIAMOND = "§s";
65
66constexpr inline std::string_view MATERIAL_EMERALD = "§q";
67
68constexpr inline std::string_view MATERIAL_GOLD = "§p";
69
70constexpr inline std::string_view MATERIAL_IRON = "§i";
71
72constexpr inline std::string_view MATERIAL_LAPIS = "§t";
73
74constexpr inline std::string_view MATERIAL_NETHERITE = "§j";
75
76constexpr inline std::string_view MATERIAL_QUARTZ = "§h";
77
78constexpr inline std::string_view MATERIAL_REDSTONE = "§m";
79
80constexpr inline std::string_view MATERIAL_RESIN = "§v";
81
82constexpr inline std::string_view MINECOIN_GOLD = "§g";
83
84constexpr inline std::string_view OBFUSCATED = "§k";
85
86constexpr inline std::string_view RED = "§c";
87
88constexpr inline std::string_view RESET = "§r";
89
90constexpr inline std::string_view WHITE = "§f";
91
92constexpr inline std::string_view YELLOW = "§e";
93// NOLINTEND
94
95} // namespace ColorFormat
Definition Color.h:13