Package dev.majek.hexnicks.message
Class ExtraTags
java.lang.Object
dev.majek.hexnicks.message.ExtraTags
Extra tag types for MiniMessage.
These extra types are not included in the default tag resolver.
- Since:
- 3.2.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
color
(@NotNull String qualifier, @NotNull Map<@NotNull String, @NotNull net.kyori.adventure.text.format.TextColor> aliases) Create a color resolver for a custom map of colors.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Create a color resolver for a custom map of colors.static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver
Get a resolver for the standard CSS colors.
-
Method Details
-
cssColors
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver cssColors()Get a resolver for the standard CSS colors.- Returns:
- a resolver for CSS colors
- Since:
- 3.2.0
-
color
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver color(@NotNull @NotNull Map<@NotNull String, @NotNull net.kyori.adventure.text.format.TextColor> aliases) Create a color resolver for a custom map of colors.- Parameters:
aliases
- the map of color names and their respective values- Returns:
- a resolver for your colors
- Since:
- 3.2.0
-
color
public static net.kyori.adventure.text.minimessage.tag.resolver.TagResolver color(@NotNull @NotNull String qualifier, @NotNull @NotNull Map<@NotNull String, @NotNull net.kyori.adventure.text.format.TextColor> aliases) Create a color resolver for a custom map of colors.- Parameters:
qualifier
- the qualifier that can be used to specify these colors in the case of another resolver having the same key for a coloraliases
- the map of color names and their respective values- Returns:
- a resolver for your colors
- Since:
- 3.2.0
-