Skip to content

Commit 3891c17

Browse files
authored
add support for TextColor constants (#2644)
1 parent dec3e63 commit 3891c17

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/main/kotlin/platform/mcp/McpModuleType.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ object McpModuleType : AbstractModuleType<McpModule>("", "") {
3737

3838
init {
3939
CommonColors.applyStandardColors(colorMap, McpConstants.CHAT_FORMATTING)
40+
CommonColors.applyStandardColors(colorMap, McpConstants.TEXT_COLOR)
4041
}
4142

4243
override fun classToColorMappings(module: Module): Map<String, Color> {

‎src/main/kotlin/platform/mcp/util/McpConstants.kt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ package com.demonwav.mcdev.platform.mcp.util
2323
object McpConstants {
2424

2525
const val CHAT_FORMATTING = "net.minecraft.ChatFormatting"
26+
const val TEXT_COLOR = "net.minecraft.network.chat.TextColor"
2627
const val MINECRAFT_SERVER = "net.minecraft.server.MinecraftServer"
2728
const val PNG_MCMETA = "*.png.mcmeta"
2829
}

0 commit comments

Comments
 (0)