Class Stylize.TitleBuilder

java.lang.Object
me.sytex.stylize.Stylize.TitleBuilder
Enclosing class:
Stylize

public static final class Stylize.TitleBuilder extends Object
Builder class for constructing and sending titles.
  • 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

      public Stylize.TitleBuilder title(@NotNull @NotNull String title)
      Sets the title text.
      Parameters:
      title - the title text
      Returns:
      this builder instance
    • subTitle

      public Stylize.TitleBuilder subTitle(@NotNull @NotNull String subTitle)
      Sets the subtitle text.
      Parameters:
      subTitle - the subtitle text
      Returns:
      this builder instance
    • fadeIn

      public Stylize.TitleBuilder fadeIn(@NotNull @NotNull Duration fadeIn)
      Sets the fade-in duration for the title.
      Parameters:
      fadeIn - the fade-in duration
      Returns:
      this builder instance
    • stay

      public Stylize.TitleBuilder stay(@NotNull @NotNull Duration stay)
      Sets the stay duration for the title.
      Parameters:
      stay - the stay duration
      Returns:
      this builder instance
    • fadeOut

      public Stylize.TitleBuilder fadeOut(@NotNull @NotNull Duration fadeOut)
      Sets the fade-out duration for the title.
      Parameters:
      fadeOut - the fade-out duration
      Returns:
      this builder instance
    • target

      public Stylize.TitleBuilder target(@NotNull @NotNull net.kyori.adventure.pointer.Pointered 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.