Class PaperPaginationSession<T>
java.lang.Object
studio.mevera.lotus.internal.pagination.DefaultPaginationSession<net.kyori.adventure.text.Component,T,PaperPageContext<T>>
studio.mevera.lotus.paper.internal.pagination.PaperPaginationSession<T>
- All Implemented Interfaces:
studio.mevera.lotus.api.pagination.PaginationSession<net.kyori.adventure.text.Component,T, PaperPageContext<T>>
public class PaperPaginationSession<T>
extends studio.mevera.lotus.internal.pagination.DefaultPaginationSession<net.kyori.adventure.text.Component,T,PaperPageContext<T>>
Paper-specific pagination session. Extends
DefaultPaginationSession and overrides
buildPageMenu(int) to synthesise a PaperPageMenu — a PaperInteractiveMenu
whose title() returns an Adventure Component directly, preserving full fidelity.-
Field Summary
Fields inherited from class studio.mevera.lotus.internal.pagination.DefaultPaginationSession
definition, itemsPerPage, lotus, snapshot, totalPages, viewer -
Constructor Summary
ConstructorsConstructorDescriptionPaperPaginationSession(@NotNull Pagination<T> definition, @NotNull studio.mevera.lotus.Lotus<net.kyori.adventure.text.Component> lotus, @NotNull org.bukkit.entity.Player viewer) -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull studio.mevera.lotus.api.menu.InteractiveMenu<net.kyori.adventure.text.Component> buildPageMenu(int pageIndex) @NotNull Pagination<T> sliceFor(int pageIndex) Methods inherited from class studio.mevera.lotus.internal.pagination.DefaultPaginationSession
close, currentIndex, goTo, next, previous, rebuildState, reload, totalPages, viewerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface studio.mevera.lotus.api.pagination.PaginationSession
isFirst, isLast
-
Constructor Details
-
PaperPaginationSession
public PaperPaginationSession(@NotNull @NotNull Pagination<T> definition, @NotNull @NotNull studio.mevera.lotus.Lotus<net.kyori.adventure.text.Component> lotus, @NotNull @NotNull org.bukkit.entity.Player viewer)
-
-
Method Details
-
definition
- Specified by:
definitionin interfacestudio.mevera.lotus.api.pagination.PaginationSession<net.kyori.adventure.text.Component,T, PaperPageContext<T>> - Overrides:
definitionin classstudio.mevera.lotus.internal.pagination.DefaultPaginationSession<net.kyori.adventure.text.Component,T, PaperPageContext<T>>
-
buildPageMenu
@NotNull protected @NotNull studio.mevera.lotus.api.menu.InteractiveMenu<net.kyori.adventure.text.Component> buildPageMenu(int pageIndex) - Specified by:
buildPageMenuin classstudio.mevera.lotus.internal.pagination.DefaultPaginationSession<net.kyori.adventure.text.Component,T, PaperPageContext<T>>
-
sliceFor
- Overrides:
sliceForin classstudio.mevera.lotus.internal.pagination.DefaultPaginationSession<net.kyori.adventure.text.Component,T, PaperPageContext<T>>
-