public interface PaginationService
Modifier and Type | Method and Description |
---|---|
PaginationBuilder |
builder()
Get a new pagination builder to send paginated output to a player.
|
PaginationCalculator<CommandSource> |
getFixedLinesCalculator(int lines)
Create a pagination calculator providing a display of a fixed number of lines.
|
PaginationCalculator<CommandSource> |
getUnpaginatedCalculator()
Returns a pagination calculator with an unlimited line count, leading to unpaginated output.
|
<T extends CommandSource> |
setPaginationCalculator(Class<T> type,
PaginationCalculator<? super T> calculator)
Register a pagination calculator for a specific type of command source.
|
PaginationBuilder builder()
<T extends CommandSource> void setPaginationCalculator(Class<T> type, PaginationCalculator<? super T> calculator) throws IllegalArgumentException
T
- The type of paginatortype
- The type of command sourcecalculator
- The calculator to registerIllegalArgumentException
- When a calculator is registered for a command source type that already has a registered calculatorPaginationCalculator<CommandSource> getUnpaginatedCalculator()
PaginationCalculator<CommandSource> getFixedLinesCalculator(int lines)
lines
- The lines to display on one page