pagination - Hazebyte/base GitHub Wiki

Pagination

Pagination should be easy! And, it is! base handles pagination in the case that it is unable to display all items in a single page.

public class PaginationPage extends Base {
    public PaginationPage(JavaPlugin plugin, String title, Size size) {
        super(plugin, title, size);

        for (int i = 0 ; i < 100; i++) {
            Button button = new Button(new ItemBuilder(Material.DIAMOND, i % 64).asItemStack());
            this.addIcon(button);
        }
    }
}