Class ExtraTags

java.lang.Object
dev.majek.hexnicks.message.ExtraTags

public final class ExtraTags extends Object
Extra tag types for MiniMessage.

These extra types are not included in the default tag resolver.

Since:
3.2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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
    color(@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
    Get a resolver for the standard CSS colors.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 color
      aliases - the map of color names and their respective values
      Returns:
      a resolver for your colors
      Since:
      3.2.0