Skip to content

Creating an inventory

Dalton edited this page Nov 19, 2021 · 11 revisions

How do you create an inventory?

Creating on is rather simple, you take a PluginInventory instance and initialize it like so:

final PluginInventory inventory = new PluginInventory(9, "&a&lInventory!");

You may notice there is 2 arguments, the 1st argument is for the inventory slot count, which goes by increments of 9 up to a maximum of 54. The second argument is what the inventory will be named.

Clone this wiki locally