Interface TitleRender


public interface TitleRender
Renders title and subtitle displays to players.

Usage example:

TitleRender titleRender = flectonePulse.get(TitleRender.class);

Times times = new Times(10, 40, 10); // fade in, stay, fade out in ticks
titleRender.render(player,
    Component.text("Main Title"),
    Component.text("Subtitle"),
    times
);
Since:
1.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(FPlayer fPlayer, net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subTitle, Times times)
    Renders a title and subtitle to a player with timing control.
  • Method Details

    • render

      void render(FPlayer fPlayer, net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component subTitle, Times times)
      Renders a title and subtitle to a player with timing control.
      Parameters:
      fPlayer - the player to receive the title
      title - the main title component
      subTitle - the subtitle component (empty for no subtitle)
      times - timing configuration for fade in, stay, and fade out