Class PaginatedText<S,T extends TextConvertible<S>>
java.lang.Object
io.github.mqzn.commands.utilities.text.PaginatedText<S,T>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic <S,T extends TextConvertible<S>>
PaginatedText<S,T> create(@NotNull CommandHelpStyle<S> provider, @NotNull SenderWrapper<S> wrapper) static <S,T extends TextConvertible<S>>
PaginatedText<S,T> create(@NotNull CommandHelpStyle<S> provider, @NotNull SenderWrapper<S> wrapper, int itemsPerPage) voiddisplayPage(@NotNull String label, S sender, int page) intgetPage(int index) intmaxPages()voidpaginate()withDisplayer(@NotNull ItemPageTextDisplayer<S, T> displayer) withHeaderLine(@NotNull String line) withPrimaryColor(@NotNull net.kyori.adventure.text.format.NamedTextColor primaryColor) withSecondaryColor(@NotNull net.kyori.adventure.text.format.NamedTextColor secondaryColor)
-
Field Details
-
DEFAULT_ITEMS_PER_PAGE
public static final int DEFAULT_ITEMS_PER_PAGE- See Also:
-
-
Method Details
-
create
public static <S,T extends TextConvertible<S>> PaginatedText<S,T> create(@NotNull @NotNull CommandHelpStyle<S> provider, @NotNull @NotNull SenderWrapper<S> wrapper) -
create
public static <S,T extends TextConvertible<S>> PaginatedText<S,T> create(@NotNull @NotNull CommandHelpStyle<S> provider, @NotNull @NotNull SenderWrapper<S> wrapper, int itemsPerPage) -
getItemsPerPage
public int getItemsPerPage() -
add
-
remove
-
withHeaderLine
-
withPrimaryColor
public PaginatedText<S,T> withPrimaryColor(@NotNull @NotNull net.kyori.adventure.text.format.NamedTextColor primaryColor) -
withSecondaryColor
public PaginatedText<S,T> withSecondaryColor(@NotNull @NotNull net.kyori.adventure.text.format.NamedTextColor secondaryColor) -
withDisplayer
-
paginate
public void paginate() -
getPage
-
maxPages
public int maxPages() -
displayPage
-