| 187 | } |
| 188 | |
| 189 | void init_color_format(py::module_ &m) |
| 190 | { |
| 191 | py::class_<ColorFormat>(m, "ColorFormat", "All supported color and format codes.") |
| 192 | .def_property_readonly_static("BLACK", [](const py::object &) { return ColorFormat::Black; }) |
| 193 | .def_property_readonly_static("DARK_BLUE", [](const py::object &) { return ColorFormat::DarkBlue; }) |
| 194 | .def_property_readonly_static("DARK_GREEN", [](const py::object &) { return ColorFormat::DarkGreen; }) |
| 195 | .def_property_readonly_static("DARK_AQUA", [](const py::object &) { return ColorFormat::DarkAqua; }) |
| 196 | .def_property_readonly_static("DARK_RED", [](const py::object &) { return ColorFormat::DarkRed; }) |
| 197 | .def_property_readonly_static("DARK_PURPLE", [](const py::object &) { return ColorFormat::DarkPurple; }) |
| 198 | .def_property_readonly_static("GOLD", [](const py::object &) { return ColorFormat::Gold; }) |
| 199 | .def_property_readonly_static("GRAY", [](const py::object &) { return ColorFormat::Gray; }) |
| 200 | .def_property_readonly_static("DARK_GRAY", [](const py::object &) { return ColorFormat::DarkGray; }) |
| 201 | .def_property_readonly_static("BLUE", [](const py::object &) { return ColorFormat::Blue; }) |
| 202 | .def_property_readonly_static("GREEN", [](const py::object &) { return ColorFormat::Green; }) |
| 203 | .def_property_readonly_static("AQUA", [](const py::object &) { return ColorFormat::Aqua; }) |
| 204 | .def_property_readonly_static("RED", [](const py::object &) { return ColorFormat::Red; }) |
| 205 | .def_property_readonly_static("LIGHT_PURPLE", [](const py::object &) { return ColorFormat::LightPurple; }) |
| 206 | .def_property_readonly_static("YELLOW", [](const py::object &) { return ColorFormat::Yellow; }) |
| 207 | .def_property_readonly_static("WHITE", [](const py::object &) { return ColorFormat::White; }) |
| 208 | .def_property_readonly_static("MINECOIN_GOLD", [](const py::object &) { return ColorFormat::MinecoinGold; }) |
| 209 | .def_property_readonly_static("MATERIAL_QUARTZ", [](const py::object &) { return ColorFormat::MaterialQuartz; }) |
| 210 | .def_property_readonly_static("MATERIAL_IRON", [](const py::object &) { return ColorFormat::MaterialIron; }) |
| 211 | .def_property_readonly_static("MATERIAL_NETHERITE", |
| 212 | [](const py::object &) { return ColorFormat::MaterialNetherite; }) |
| 213 | .def_property_readonly_static("MATERIAL_REDSTONE", |
| 214 | [](const py::object &) { return ColorFormat::MaterialRedstone; }) |
| 215 | .def_property_readonly_static("MATERIAL_COPPER", [](const py::object &) { return ColorFormat::MaterialCopper; }) |
| 216 | .def_property_readonly_static("MATERIAL_GOLD", [](const py::object &) { return ColorFormat::MaterialGold; }) |
| 217 | .def_property_readonly_static("MATERIAL_EMERALD", |
| 218 | [](const py::object &) { return ColorFormat::MaterialEmerald; }) |
| 219 | .def_property_readonly_static("MATERIAL_DIAMOND", |
| 220 | [](const py::object &) { return ColorFormat::MaterialDiamond; }) |
| 221 | .def_property_readonly_static("MATERIAL_LAPIS", [](const py::object &) { return ColorFormat::MaterialLapis; }) |
| 222 | .def_property_readonly_static("MATERIAL_AMETHYST", |
| 223 | [](const py::object &) { return ColorFormat::MaterialAmethyst; }) |
| 224 | .def_property_readonly_static("MATERIAL_RESIN", [](const py::object &) { return ColorFormat::MaterialResin; }) |
| 225 | .def_property_readonly_static("OBFUSCATED", [](const py::object &) { return ColorFormat::Obfuscated; }) |
| 226 | .def_property_readonly_static("BOLD", [](const py::object &) { return ColorFormat::Bold; }) |
| 227 | .def_property_readonly_static("ITALIC", [](const py::object &) { return ColorFormat::Italic; }) |
| 228 | .def_property_readonly_static("RESET", [](const py::object &) { return ColorFormat::Reset; }); |
| 229 | } |
| 230 | |
| 231 | void init_game_mode(py::module_ &m) |
| 232 | { |