Class PaperPageLayoutBuilder<T>
java.lang.Object
studio.mevera.lotus.paper.api.pagination.PaperPageLayoutBuilder<T>
Standalone builder for
PaperPageLayout. Uses Adventure Component for titles,
ItemStack.of() and editMeta() lambda — Paper 1.21+ specific APIs.
This builder is independent of PageLayoutBuilder
(not extending it) to avoid fluent-inheritance issues.
-
Method Summary
Modifier and TypeMethodDescription@NotNull PaperPageLayout<T> build()@NotNull PaperPageLayoutBuilder<T> decorations(@NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.content.Content> decorations) @NotNull PaperPageLayoutBuilder<T> fillMask(@NotNull studio.mevera.lotus.api.slot.SlotMask mask) @NotNull PaperPageLayoutBuilder<T> nextButton(@NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> nextButton) @NotNull PaperPageLayoutBuilder<T> nextButton(@NotNull studio.mevera.lotus.api.slot.Slot slot, @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> button) @NotNull PaperPageLayoutBuilder<T> previousButton(@NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> previousButton) @NotNull PaperPageLayoutBuilder<T> previousButton(@NotNull studio.mevera.lotus.api.slot.Slot slot, @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> button) @NotNull PaperPageLayoutBuilder<T> title(@NotNull Function<PaperPageContext<T>, net.kyori.adventure.text.Component> title)
-
Method Details
-
title
@NotNull public @NotNull PaperPageLayoutBuilder<T> title(@NotNull @NotNull Function<PaperPageContext<T>, net.kyori.adventure.text.Component> title) -
fillMask
@NotNull public @NotNull PaperPageLayoutBuilder<T> fillMask(@NotNull @NotNull studio.mevera.lotus.api.slot.SlotMask mask) -
previousButton
@NotNull public @NotNull PaperPageLayoutBuilder<T> previousButton(@NotNull @NotNull studio.mevera.lotus.api.slot.Slot slot, @NotNull @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> button) -
previousButton
@NotNull public @NotNull PaperPageLayoutBuilder<T> previousButton(@NotNull @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> previousButton) -
nextButton
@NotNull public @NotNull PaperPageLayoutBuilder<T> nextButton(@NotNull @NotNull studio.mevera.lotus.api.slot.Slot slot, @NotNull @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> button) -
nextButton
@NotNull public @NotNull PaperPageLayoutBuilder<T> nextButton(@NotNull @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.button.Button> nextButton) -
decorations
@NotNull public @NotNull PaperPageLayoutBuilder<T> decorations(@NotNull @NotNull Function<PaperPageContext<T>, studio.mevera.lotus.api.content.Content> decorations) -
build
-