public interface PaginationCalculator<T extends CommandSource>
Modifier and Type | Method and Description |
---|---|
Text |
center(T source,
Text text,
String padding)
Return a new text object that contains the provided input centered with the given padding character.
|
int |
getLines(T source,
Text text)
Get the length in lines of the provided text.
|
int |
getLinesPerPage(T source)
Get the maxinum number of lines that can be displayed on a source's screen.
|
int getLinesPerPage(T source)
source
- The source to checkint getLines(T source, Text text)
source
- The source to check fortext
- The text to get the length of