Package me.sytex.stylize
Class Stylize.StylizeBuilder
java.lang.Object
me.sytex.stylize.Stylize.StylizeBuilder
- Enclosing class:
Stylize
Builder class for constructing
Stylize
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theStylize
instance.characters
(@NotNull Collection<? extends Character> characters) Sets the characters to be used for styling.parseMiniPlaceholders
(boolean parseMiniPlaceholders) Sets whether to parse MiniPlaceholders placeholders.parsePlaceholderAPI
(boolean parsePlaceholderAPI) Sets whether to parse PlaceholderAPI placeholders.tags
(@NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver tagResolver) Sets the tag resolver for the stylize instance.
-
Method Details
-
parsePlaceholderAPI
Sets whether to parse PlaceholderAPI placeholders.- Parameters:
parsePlaceholderAPI
- whether to parse PlaceholderAPI placeholders- Returns:
- this builder instance
-
parseMiniPlaceholders
Sets whether to parse MiniPlaceholders placeholders.- Parameters:
parseMiniPlaceholders
- whether to parse MiniPlaceholders placeholders- Returns:
- this builder instance
-
characters
public Stylize.StylizeBuilder characters(@NotNull @NotNull Collection<? extends Character> characters) Sets the characters to be used for styling.- Parameters:
characters
- the characters to be used for styling- Returns:
- this builder instance
-
tags
public Stylize.StylizeBuilder tags(@NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver tagResolver) Sets the tag resolver for the stylize instance.- Parameters:
tagResolver
- the tag resolver- Returns:
- this builder instance
-
build
Builds theStylize
instance.- Returns:
- the constructed
Stylize
instance
-