MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

Support legacy color formats in strings

Open aikar opened this issue 7 years ago • 4 comments

For any platforms default chat API's that support legacy color codes, or for any method annotated @com.jetbrains.annotations.Language("minecraft.chat") (or similar)

Support formatting the text, or at least underlining the text according to minecrafts formatting rules, so its clear what the text will look like in game.

An option to provide alternate strings such as &a would be desired, potentially configured in the annotation itself (since we know if a core API provides alternate strings or not).

Maybe @Language("minecraft.chat:&")

aikar avatar Dec 05 '17 20:12 aikar

Bukkit API: player.sendMessage

aikar avatar Dec 05 '17 20:12 aikar

Should be expanded to code folding, in-string text rendering, auto-completion, and possibly carrying the code folding rendering over to the newer chat APIs too.

DenWav avatar Dec 05 '17 22:12 DenWav

Must have feature. How isn't it implemented yet?

Wector11211 avatar Mar 20 '23 09:03 Wector11211

Legacy color codes are by definition legacy and so using color enums / component builders would be preferred. You can always PR the feature if you want to see it faster. (I'd note that the common color enums do already have support in Minecraft Dev and show up in the gutter.)

SizableShrimp avatar Mar 20 '23 22:03 SizableShrimp