-
Notifications
You must be signed in to change notification settings - Fork 3
pagination
imWillX edited this page Nov 8, 2019
·
1 revision
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);
}
}
}