Interface TitlesAPI<P>


public interface TitlesAPI<P>
API for sending titles and subtitles to players.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    clear(P player)
    Clear title for player.
    void
    send(P player, String titleKey, String subtitleKey, Map<String,String> placeholders)
    Send title and subtitle from language config keys.
    void
    send(P player, String titleKey, String subtitleKey, Map<String,String> placeholders, int fadeIn, int stay, int fadeOut)
    Send title and subtitle with custom timings.
    void
    sendRaw(P player, String title, String subtitle)
    Send raw title and subtitle (already formatted).
    void
    sendRaw(P player, String title, String subtitle, int fadeIn, int stay, int fadeOut)
    Send raw title and subtitle with custom timings.
  • Method Details

    • send

      void send(P player, String titleKey, String subtitleKey, Map<String,String> placeholders)
      Send title and subtitle from language config keys.
    • send

      void send(P player, String titleKey, String subtitleKey, Map<String,String> placeholders, int fadeIn, int stay, int fadeOut)
      Send title and subtitle with custom timings.
    • sendRaw

      void sendRaw(P player, String title, String subtitle)
      Send raw title and subtitle (already formatted).
    • sendRaw

      void sendRaw(P player, String title, String subtitle, int fadeIn, int stay, int fadeOut)
      Send raw title and subtitle with custom timings.
    • clear

      void clear(P player)
      Clear title for player.