Interface LineDrawable


@NonExtendable public interface LineDrawable
Something lines can be drawn to. This is either the lines of a sidebar or the sidebar title.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    drawLine(@NotNull net.kyori.adventure.text.ComponentLike line)
    Draws a line, or does nothing if it has reached the limit.
    void
    drawLine(@NotNull net.kyori.adventure.text.ComponentLike line, @Nullable ScoreFormat scoreFormat)
    Draws a line with a custom score format, or does nothing if it has reached the limit.
  • Method Details

    • drawLine

      default void drawLine(@NotNull @NotNull net.kyori.adventure.text.ComponentLike line)
      Draws a line, or does nothing if it has reached the limit.
      Parameters:
      line - line component
    • drawLine

      void drawLine(@NotNull @NotNull net.kyori.adventure.text.ComponentLike line, @Nullable @Nullable ScoreFormat scoreFormat)
      Draws a line with a custom score format, or does nothing if it has reached the limit.
      Parameters:
      line - line component
      scoreFormat - score format