Package me.sytex.stylize
Class Stylize.TitleBuilder
java.lang.Object
me.sytex.stylize.Stylize.TitleBuilder
- Enclosing class:
Stylize
Builder class for constructing and sending titles.
-
Method Summary
Modifier and TypeMethodDescriptionaudience
(@NotNull net.kyori.adventure.audience.Audience audience) Sets the audience for the title.Sets the fade-in duration for the title.Sets the fade-out duration for the title.resolvers
(@NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sets the tag resolvers for the title.void
send()
Sends the constructed title to the audience.Sets the stay duration for the title.Sets the subtitle text.target
(@NotNull net.kyori.adventure.pointer.Pointered target) Sets the target for the title.Sets the title text.
-
Method Details
-
audience
public Stylize.TitleBuilder audience(@NotNull @NotNull net.kyori.adventure.audience.Audience audience) Sets the audience for the title.- Parameters:
audience
- the audience to send the title to- Returns:
- this builder instance
-
title
Sets the title text.- Parameters:
title
- the title text- Returns:
- this builder instance
-
subTitle
Sets the subtitle text.- Parameters:
subTitle
- the subtitle text- Returns:
- this builder instance
-
fadeIn
Sets the fade-in duration for the title.- Parameters:
fadeIn
- the fade-in duration- Returns:
- this builder instance
-
stay
Sets the stay duration for the title.- Parameters:
stay
- the stay duration- Returns:
- this builder instance
-
fadeOut
Sets the fade-out duration for the title.- Parameters:
fadeOut
- the fade-out duration- Returns:
- this builder instance
-
target
Sets the target for the title.- Parameters:
target
- the target for the title- Returns:
- this builder instance
-
resolvers
public Stylize.TitleBuilder resolvers(@NotNull @NotNull net.kyori.adventure.text.minimessage.tag.resolver.TagResolver... resolvers) Sets the tag resolvers for the title.- Parameters:
resolvers
- the tag resolvers for the title- Returns:
- this builder instance
-
send
public void send()Sends the constructed title to the audience.
-