Interface LineDrawable
@NonExtendable
public interface LineDrawable
Something lines can be drawn to line by line. This is either the lines of a sidebar or its title.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voiddrawLine(@NotNull net.kyori.adventure.text.ComponentLike line) Draws the next line, or does nothing if it has reached a limit.voiddrawLine(@NotNull net.kyori.adventure.text.ComponentLike line, @Nullable ScoreFormat scoreFormat) Draws the next line with a custom score format, or does nothing if it has reached a limit.
-
Method Details
-
drawLine
default void drawLine(@NotNull @NotNull net.kyori.adventure.text.ComponentLike line) Draws the next line, or does nothing if it has reached a limit.- Parameters:
line- line component
-
drawLine
void drawLine(@NotNull @NotNull net.kyori.adventure.text.ComponentLike line, @Nullable @Nullable ScoreFormat scoreFormat) Draws the next line with a custom score format, or does nothing if it has reached a limit.- Parameters:
line- line componentscoreFormat- score format
-