PaginatedGUI
Last updated
Was this helpful?
Last updated
Was this helpful?
If your GUI requires more space than the maximum size allows, this type of inventory is for you! Creating one is simple - you may either instantiate a PaginatedGUI object or extend the class, but with the added step of calling the #draw
method. The last two slots are reserved for navigation.
Quick and easy, this method is ideal for infrequent use of your GUI:
Note that nothing special happens when your Player clicks an Item. To add a response for those slots, see the page.
This method is preferred if you intend to reuse your GUI frequently and/or show it to multiple players at once:
As a bonus, let's set all unpopulated slots to an Item:
Note that nothing special happens when your Player clicks an Item other than the navigation arrows. To add a response for those slots, see the page.
If your resource supports versions of Minecraft both before and after 1.13, you'll need to be careful with Materials. Passing as a String instead ("APPLE") may give you better results with some items, but we recommend using a library like .