Interface MiniMessageWrapper.Builder

Enclosing interface:
MiniMessageWrapper

public static interface MiniMessageWrapper.Builder
A builder for MiniMessageWrapper.
Since:
2.1.2
  • Method Details

    • gradients

      @NotNull @NotNull MiniMessageWrapper.Builder gradients(boolean parse)
      Whether gradients on the final string should be parsed.
      Parameters:
      parse - whether to parse
      Returns:
      this builder
      Since:
      2.1.2
    • hexColors

      @NotNull @NotNull MiniMessageWrapper.Builder hexColors(boolean parse)
      Whether hex colors on the final string should be parsed.
      Parameters:
      parse - whether to parse
      Returns:
      this builder
      Since:
      2.1.2
    • standardColors

      @NotNull @NotNull MiniMessageWrapper.Builder standardColors(boolean parse)
      Whether all standard color codes on the final string should be parsed.
      Parameters:
      parse - whether to parse
      Returns:
      this builder
      Since:
      2.1.2
    • legacyColors

      @NotNull @NotNull MiniMessageWrapper.Builder legacyColors(boolean parse)
      Whether legacy color codes on the final string should be parsed.
      Parameters:
      parse - whether to parse
      Returns:
      this builder
      Since:
      2.1.2
    • advancedTransformations

      @NotNull @NotNull MiniMessageWrapper.Builder advancedTransformations(boolean parse)
      Whether to parse advanced Tags on the final string to be parsed. This includes click events, hover events, fonts, etc.
      Parameters:
      parse - whether to parse
      Returns:
      this builder
      Since:
      2.1.2
    • removeTextDecorations

      @NotNull @NotNull MiniMessageWrapper.Builder removeTextDecorations(@NotNull @NotNull net.kyori.adventure.text.format.TextDecoration... decorations)
      The TextDecorations that should not be parsed.
      Parameters:
      decorations - the decorations
      Returns:
      this builder
      Since:
      2.2.0
    • removeTextDecorations

      @NotNull @NotNull MiniMessageWrapper.Builder removeTextDecorations(@NotNull @NotNull Collection<@NotNull net.kyori.adventure.text.format.TextDecoration> decorations)
      The TextDecorations that should not be parsed.
      Parameters:
      decorations - the decorations
      Returns:
      this builder
      Since:
      3.0.0
    • placeholderResolver

      @NotNull @NotNull MiniMessageWrapper.Builder placeholderResolver(@NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver placeholderResolver)
      Set the TagResolver for the MiniMessage instance.
      Parameters:
      placeholderResolver - the placeholder resolver
      Returns:
      this builder
      Since:
      2.2.1
    • removeColors

      @NotNull @NotNull MiniMessageWrapper.Builder removeColors(@NotNull @NotNull net.kyori.adventure.text.format.NamedTextColor... colors)
      The NamedTextColors that should not be parsed.
      Parameters:
      colors - the colors
      Returns:
      this builder
      Since:
      2.2.1
    • removeColors

      @NotNull @NotNull MiniMessageWrapper.Builder removeColors(@NotNull @NotNull Collection<@NotNull net.kyori.adventure.text.format.NamedTextColor> colors)
      The NamedTextColors that should not be parsed.
      Parameters:
      colors - the colors
      Returns:
      this builder
      Since:
      3.0.0
    • build

      @NotNull @NotNull MiniMessageWrapper build()
      Build the MiniMessageWrapper ready to parse.
      Returns:
      the wrapper
      Since:
      2.1.2