Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultChar = SectionChar DefaultHexChar = HexChar // The legacy character used by Minecraft. SectionChar rune = '§' // The legacy character frequently used by configurations and commands. AmpersandChar rune = '&' // The character used to prefix hex colors. HexChar rune = '#' Chars = "0123456789abcdefklmnor" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Legacy ¶
type Legacy struct { Char rune // The format char to use (e.g. DefaultChar, SectionChar, AmpersandChar). HexChar rune // The hex prefixing char to use (e.g. HexChar). // Since Minecraft 1.16+ there can be hex colors (e.g. "#ff5555" instead of the named color "red"). // This setting decides whether to use the nearest legacy named color of the hex color instead. // // This setting is false by default to support older client versions. NoDownsampleColor bool // Whether to add a "open_url" click event with the URL to the text containing an URL. ClickableUrl bool }
Click to show internal directories.
Click to hide internal directories.