Interface ContentSource<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Supplies the items that a pagination session will show.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NotNull ContentSource<T> Returns a source backed by a function.static <T> @NotNull ContentSource<T> Returns a source backed by a fixed list.provide(@NotNull org.bukkit.entity.Player viewer) Returns the full item list for the viewer.
-
Method Details
-
provide
Returns the full item list for the viewer. -
of
Returns a source backed by a fixed list. -
dynamic
@NotNull static <T> @NotNull ContentSource<T> dynamic(@NotNull @NotNull Function<org.bukkit.entity.Player, List<T>> source) Returns a source backed by a function.
-