Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Text string `json:"text"` Color *colors.Color `json:"color,omitempty"` Decorators []decorators.Decorator `json:"decorators"` }
Item is a single formatting item that contains a color and any optional formatting controls.
func (Item) HTML ¶
HTML returns the HTML representation of the format item. A <span> tag is used as well as the style and class attributes. Obfuscation is encoded as a class with the name 'minecraft-format-obfuscated'.
Click to show internal directories.
Click to hide internal directories.