Uses of Interface
tech.guilhermekaua.spigotboot.inventoryapi.pagination.PaginationBuilder
Packages that use PaginationBuilder
Package
Description
The spigot-boot inventory framework (3.0.0): view-based inventories with typed per-phase
contexts, reactive state, and declarative pagination.
-
Uses of PaginationBuilder in tech.guilhermekaua.spigotboot.inventoryapi
Methods in tech.guilhermekaua.spigotboot.inventoryapi that return PaginationBuilderModifier and TypeMethodDescriptionprotected final <T> PaginationBuilder<T>View.paginate(@NotNull Function<ViewContext, List<T>> source) Declares paginated rendering over a per-context element list: the function runs once per context at pagination initialization, on the main thread, and runs again for that context only whenPagination.refresh(context)is called.protected final <T> PaginationBuilder<T>Declares paginated rendering over a fixed element list.protected final <T> PaginationBuilder<T>View.paginateAsync(@NotNull AsyncPageSupplier<T> source) Declares paginated rendering over an asynchronously loaded source: every context gets its own freshAsyncPageSourceat pagination initialization, so request ids, page caches, loading state and errors are never shared between viewers.protected final <T> PaginationBuilder<T>View.paginateSource(@NotNull Function<ViewContext, PageSource<T>> factory) Escape hatch declaring paginated rendering over a customPageSource: the factory runs once per context at pagination initialization and must return the source instance serving exactly that context. -
Uses of PaginationBuilder in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination
Classes in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination that implement PaginationBuilderModifier and TypeClassDescriptionfinal classPaginationBuilderimplementation behindView.paginate*: collects the declaration fluently (value errors rejected at setter time), validates the combination atPaginationBuilderImpl.build(), resolves geometry and target, and constructs the registeredPaginationImpltoken.Methods in tech.guilhermekaua.spigotboot.inventoryapi.internal.pagination that return PaginationBuilderModifier and TypeMethodDescription@NotNull PaginationBuilder<T>PaginationBuilderImpl.cacheMaxPages(int maxPages) @NotNull PaginationBuilder<T>@NotNull PaginationBuilder<T>PaginationBuilderImpl.emptyStateItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item, int... slots) @NotNull PaginationBuilder<T>PaginationBuilderImpl.fallbackItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item) @NotNull PaginationBuilder<T>PaginationBuilderImpl.itemRenderer(@NotNull PaginationItemRenderer<T> renderer) @NotNull PaginationBuilder<T>@NotNull PaginationBuilder<T>PaginationBuilderImpl.layoutChar(char character) @NotNull PaginationBuilder<T>PaginationBuilderImpl.loadingItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item) @NotNull PaginationBuilder<T>PaginationBuilderImpl.loadingItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item, int... slots) @NotNull PaginationBuilder<T>PaginationBuilderImpl.onError(@NotNull PaginationErrorCallback callback) @NotNull PaginationBuilder<T>@NotNull PaginationBuilder<T>PaginationBuilderImpl.requestTimeout(@NotNull Duration timeout) @NotNull PaginationBuilder<T>PaginationBuilderImpl.scroll() -
Uses of PaginationBuilder in tech.guilhermekaua.spigotboot.inventoryapi.pagination
Methods in tech.guilhermekaua.spigotboot.inventoryapi.pagination that return PaginationBuilderModifier and TypeMethodDescription@NotNull PaginationBuilder<T>PaginationBuilder.cacheMaxPages(int maxPages) Bounds the page cache (least-recently-used eviction).@NotNull PaginationBuilder<T>Enables page caching: revisiting a page within the TTL renders from cache without calling the supplier;Pagination.refresh(ViewContext)invalidates the cache.@NotNull PaginationBuilder<T>PaginationBuilder.emptyStateItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item, int... slots) Sets an item painted into the given slots when the current page settled with no elements, leaving every other layout slot empty.@NotNull PaginationBuilder<T>PaginationBuilder.fallbackItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item) Sets the item painted into page slots not covered by an element (for example the tail of a short last page) and into slots whose element failed on its very first paint.@NotNull PaginationBuilder<T>PaginationBuilder.itemRenderer(@NotNull PaginationItemRenderer<T> renderer) Sets the per-element renderer.@NotNull PaginationBuilder<T>Sets an explicit fill order, silently overridinglayoutChar(char).@NotNull PaginationBuilder<T>PaginationBuilder.layoutChar(char character) Targets every slot of the given character in the view's layout, in row-major order.@NotNull PaginationBuilder<T>PaginationBuilder.loadingItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item) Sets the item painted into every page slot while an async load is in flight.@NotNull PaginationBuilder<T>PaginationBuilder.loadingItem(@NotNull Function<ViewContext, org.bukkit.inventory.ItemStack> item, int... slots) Sets the loading item painted only into the given slots while an async load is in flight, leaving every other layout slot empty.@NotNull PaginationBuilder<T>PaginationBuilder.onError(@NotNull PaginationErrorCallback callback) Sets the callback invoked when an async page load fails.@NotNull PaginationBuilder<T>Switches to pattern geometry: pageppaints into the slots of pattern(p - 1) % patterns.length, cycling through the given patterns.@NotNull PaginationBuilder<T>PaginationBuilder.requestTimeout(@NotNull Duration timeout) Enables a per-request timeout: a load exceeding it fails with aTimeoutExceptionand follows the normal error path.@NotNull PaginationBuilder<T>PaginationBuilder.scroll()Switches to sliding-window geometry: each page slides the visible window by exactly one element instead of jumping a full page.