From 3714514b8636d933fbae6b54acd3d6e628d49946 Mon Sep 17 00:00:00 2001 From: armorshard1 <202433812+armorshard1@users.noreply.github.com> Date: Mon, 10 Mar 2025 02:44:33 +0100 Subject: [PATCH] Add material colors, {reset} and {line} --- lib/defaults/format.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/defaults/format.php b/lib/defaults/format.php index 6a5d364..5498f4f 100644 --- a/lib/defaults/format.php +++ b/lib/defaults/format.php @@ -37,11 +37,23 @@ public static function register(Indices $indices) : void { [TextFormat::YELLOW, "yellow"], [TextFormat::WHITE, "white"], [TextFormat::MINECOIN_GOLD, "minecoinGold"], + [TextFormat::MATERIAL_QUARTZ, "materialQuartz"], + [TextFormat::MATERIAL_IRON, "materialIron"], + [TextFormat::MATERIAL_NETHERITE, "materialNetherite"], + [TextFormat::MATERIAL_REDSTONE, "materialRedstone"], + [TextFormat::MATERIAL_COPPER, "materialCopper"], + [TextFormat::MATERIAL_GOLD, "materialGold"], + [TextFormat::MATERIAL_EMERALD, "materialEmerald"], + [TextFormat::MATERIAL_DIAMOND, "materialDiamond"], + [TextFormat::MATERIAL_LAPIS, "materialLapis"], + [TextFormat::MATERIAL_AMETHYST, "materialAmethyst"], [TextFormat::OBFUSCATED, "obfuscated"], [TextFormat::BOLD, "bold"], [TextFormat::STRIKETHROUGH, "strikethrough"], [TextFormat::UNDERLINE, "underline"], [TextFormat::ITALIC, "italic"], + [TextFormat::RESET, "reset"], + [TextFormat::EOL, "eol"], ] as [$code, $name]) { $indices->registries->mappings->register(new Mapping( qualifiedName: ["infoapi", "formats", $name],