Scrolling GUI

Simple GUI that allows you to scroll on a Paginated GUI instead of going page by page.

Creating a Scrolling GUI

To create a Scrolling G

ScrollingGui gui = Gui.scrolling()
        .title(Component.text("GUI Title!"))
        .rows(6)
        .pageSize(45)
        .scrollType(ScrollType.HORIZONTAL) // Not needed, defauilts to VERTICAL.
        .create();

Just like the normal GUI the first parameter is the rows the GUI should have. Like the Paginated GUI the second parameter is to specify the page size, as in how big the page should be, in the example above it's 45 slots dedicated for the page.

Everything else about this GUI is exactly like the Paginated.

Last updated