Package dev.majek.hexnicks.message
Interface MiniMessageWrapper.Builder
- Enclosing interface:
- MiniMessageWrapper
public static interface MiniMessageWrapper.Builder
A builder for
MiniMessageWrapper.- Since:
- 2.1.2
-
Method Summary
Modifier and TypeMethodDescription@NotNull MiniMessageWrapper.BuilderadvancedTransformations(boolean parse) Whether to parse advancedTags on the final string to be parsed.@NotNull MiniMessageWrapperbuild()Build theMiniMessageWrapperready to parse.@NotNull MiniMessageWrapper.BuildercssColors(boolean parse) Whether CSS color codes on the final string should be parsed.@NotNull MiniMessageWrapper.Buildergradients(boolean parse) Whether gradients on the final string should be parsed.@NotNull MiniMessageWrapper.BuilderhexColors(boolean parse) Whether hex colors on the final string should be parsed.@NotNull MiniMessageWrapper.BuilderlegacyColors(boolean parse) Whether legacy color codes on the final string should be parsed.@NotNull MiniMessageWrapper.BuilderplaceholderResolver(@NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver placeholderResolver) Set theTagResolverfor theMiniMessageinstance.@NotNull MiniMessageWrapper.BuilderremoveColors(@NotNull Collection<@NotNull net.kyori.adventure.text.format.NamedTextColor> colors) TheNamedTextColors that should not be parsed.@NotNull MiniMessageWrapper.BuilderremoveColors(@NotNull net.kyori.adventure.text.format.NamedTextColor... colors) TheNamedTextColors that should not be parsed.@NotNull MiniMessageWrapper.BuilderremoveTextDecorations(@NotNull Collection<@NotNull net.kyori.adventure.text.format.TextDecoration> decorations) TheTextDecorations that should not be parsed.@NotNull MiniMessageWrapper.BuilderremoveTextDecorations(@NotNull net.kyori.adventure.text.format.TextDecoration... decorations) TheTextDecorations that should not be parsed.@NotNull MiniMessageWrapper.BuilderstandardColors(boolean parse) Whether all standard color codes on the final string should be parsed.
-
Method Details
-
gradients
Whether gradients on the final string should be parsed.- Parameters:
parse- whether to parse- Returns:
- this builder
- Since:
- 2.1.2
-
hexColors
Whether hex colors on the final string should be parsed.- Parameters:
parse- whether to parse- Returns:
- this builder
- Since:
- 2.1.2
-
standardColors
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
Whether legacy color codes on the final string should be parsed.- Parameters:
parse- whether to parse- Returns:
- this builder
- Since:
- 2.1.2
-
advancedTransformations
Whether to parse advancedTags 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
-
cssColors
Whether CSS color codes on the final string should be parsed.- Parameters:
parse- whether to parse- Returns:
- this builder
- Since:
- 3.2.0
-
removeTextDecorations
@NotNull @NotNull MiniMessageWrapper.Builder removeTextDecorations(@NotNull @NotNull net.kyori.adventure.text.format.TextDecoration... decorations) TheTextDecorations 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) TheTextDecorations 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 theTagResolverfor theMiniMessageinstance.- 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) TheNamedTextColors 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) TheNamedTextColors that should not be parsed.- Parameters:
colors- the colors- Returns:
- this builder
- Since:
- 3.0.0
-
build
Build theMiniMessageWrapperready to parse.- Returns:
- the wrapper
- Since:
- 2.1.2
-