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 TypeMethodDescriptiondefault voiddrawLine(@NotNull net.kyori.adventure.text.ComponentLike line) Draws a line, or does nothing if it has reached the limit.voiddrawLine(@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 componentscoreFormat- score format
-