An inventory must always have at least an
id must not be changed, it has been defined by the developer and may be used in the code,
allowing the plugin to identify this inventory amongst the others.
rows defines the number of rows this inventory will have.
title sets the title of this inventory.
items defines the content of the inventory:
- Each value is a JSON object with:
xcoordinate, inside the inventory
ycoordinate, inside the inventory
- an identifier, only use on of the two. The FileItem ID has the priority:
id, the ID of a FileItem OR
type, a Minecraft ID.
The following should not be changed (like the
id) since they are used in the code:
on_inv_secondary_clickis used to listen to a secondary click on any item in this inventory.
on_inv_primary_clickis used to listen to a primary click on any item in this inventory.
on_inv_middle_clickis used to listen to a middle click on any item in this inventory.
on_createis used to listen the creation of this inventory, in the case where you want to do something special to it.