Package dev.mintychochip.mint.theme
Interface Theme
@Experimental
@AvailableSince("1.3")
public interface Theme
Represents a color theme with semantic color roles.
Themes map ColorRoles to TextColors, allowing
consistent theming across messages with semantic names like "accent", "primary", etc.
- Since:
- 1.3
-
Method Details
-
getColor
Gets the color for a specific role in this theme.- Parameters:
role- the color role- Returns:
- the TextColor for this role
-
name
Gets the displayName of this theme.- Returns:
- the theme displayName
-
resolver
@AvailableSince("1.3") net.kyori.adventure.text.minimessage.tag.resolver.TagResolver resolver()Gets the tag resolver for this theme.The tag resolver contains all color role tags that can be used in MiniMessage strings with this theme.
- Returns:
- the TagResolver for this theme
- Since:
- 1.3
-